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 ) but it didn’t work here.

aspose (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.

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.