Docs.zip (93.2 KB)
Hi Aspose Team,
We are using the latest aspose words (21.9.0) library for java. One of our requirements is to read a .doc template file and populate the table grid dynamically by iterating through the various table nodes. The number of rows and columns in the table will dynamically increase/decrease depending on the data, by iteratively populating the template. The table layout is fixed width for each of the columns. After populating the dynamic data, the document will be exported as PDF (save with SaveFormat.PDF).
The dynamic tables formatting was proper when we were using the outdated aspose words library, but with the latest one it is broken. we tried document.updateTableLayout(), Table.autoFit() etc, but it did not work. We are unable to identify any other fix from the forum as well.
I am attaching a sample doc template and the corresponding pdf file, please have a look and suggest a solution.
RajkumarPrinterfriendly.pdf (83.4 KB)