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

Free Support Forum - aspose.com

Generated table is not wrapped properly upon docx to pdf conversion

I am using Aspose version 14.8.0. I have a template in which I am replacing particular strings with tables. The tables generate correctly for the .docx – I am using AutoFitBehavior.AutoFitToContents so it looks nice and neat. However, when I use doc.Save to save my document as a pdf the table gets shrunk to fit the smallest content.
image.png (2.8 KB).
How can I resolve this issue?
Thank you so much!


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.