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

Free Support Forum - aspose.com

Convert DOCX with Incorrect Auto Fit Table Grid (Table column widths) Stored in Document to PDF using Java

The following code converts the attached input.docx into output.pdf but the table in the resulting PDF looks completely different. Can you have a look at it please? Here’s the code:

Document doc = new Document(“input.docx”);

Especially the last column has the wrong width / is placed wrongly. It should look exactly like the word document.

We use Aspose.Words for Java version 20.1.

documents.zip (54.7 KB)


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-19871. 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.

Is there any news available related to this bug?


I am afraid, your issue is not resolved yet and because of complexity, the implementation of the fix of this issue has been postponed till a later date. There are no estimates available at the moment.

The issue occurs because an incorrect auto-fit table grid stored in the document is currently not re-calculated by Aspose.Words.

The issue actually depends on the resolution of an internal extremely complex issue (WORDSNET-832). Therefore, WORDSNET-19871 is postponed until at least WORDSNET-832 is resolved, we will review your issue after the resolution of WORDSNET-832.

We will inform you via this thread as soon as this issue will get resolved or any further updates may be available in future.

The document can be saved via MS Word as a workaround.

We apologize for any inconvenience.