Preserve Table Column Widths, Cell Text Wrapping in Word Document during DOCX to PDF Conversion using C# .NET API

Hi,

When converting a DOCX to PDF using Aspose.Words, I noticed a lot of one-line rows became two lines.

Code:

var doc = new Document(@".\test.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(@".\test.pdf");

I have attached the test files and a screenshot for your reference. Note that I have already tried to use Harfbuzz (which helped the case in the other ticket https://forum.aspose.com/t/preserve-text-wrapping-gap-between-table-borders-during-docx-to-pdf-conversion-using-c-net-api/204393 ) but it didn’t work here.

aspose table.zip (106.9 KB)
image.png (83.1 KB)

Could you please take a look?

Thanks,

@ServerSide527,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19784. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19784) have been fixed in this Aspose.Words for .NET 23.10 update also available on NuGet.