Free Support Forum -

Table column width in PDF export when mixing millimeter and percent widths


see attached sample: I create a table with fixed column widths and 100% page width. Some columns have a percent width and others have a millimeter width.
The result looks fine in word, but in PDF export the table is much smaller and the column widths are ignored.
If all column have percent width or all columns have millimeter width, it works.

Here is the sample (you have to fix the reference to Aspose.Words before starting it). (10.9 KB)

This is not really a problem for us - if I don’t mix millmeter/percent in our report, it is easy fixable.

Best regards



Thanks for your inquiry. 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-17060. 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.

In the meantime, please call Document.UpdateTableLayout(); method before saving to PDF as a workaround.

Thank you! No hurry, the issue is easy to workaround :wink:

Best regards