Free Support Forum -

DOCX to PDF table formatting issues


I was trying to create a simple table in docx file using Document builder and than tried to convert the generated DOCX file into PDF file using Aspose words but somehow in PDF table formatting is not coming proper. Is there anything that is missing in the code that needs to be added to fix this issue.
Please find attached the java file , DOCX file and PDF file generated out of it.
Doc to PDF (30.5 KB).


Thanks for your inquiry. Please call the Document.updateTableLayout method before saving the document as shown below to get the desired output.

doc.updateTableLayout(); + "Heading_1col.pdf", options);

Thanks this works for me.