We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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


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

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

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?



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.