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

Free Support Forum - aspose.com

Table layout AutoFit Window inot working in PDF

Hi I have word document with a table in it. I have set the table layout to Autofit Window. From the code, I remove a column a 2 depending on the situation. I expect the table to Autofit to window after column removal also. But the autofit works only when Word doc is generated. If I generate a PDF of the same, it doesnt autofit.


Thanks for your inquiry. You may call UpdateTableLayout() method of Document object before saving the document. Hopefully it will help to resolve the issue. However, if the issue persists then please share following resources as ZIP file. We will look into the issue and will guide you accordingly.

  • Your input Word document
  • Your output documents, Word and PDF documents
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end.