Aspose Words java tabular data not aligning with source format in Pdf conversion

Hi,
I am attaching the docx source file and the generated pdf file. If you look i source document on pages 1 and 2 the last item in the table is different than the one in Pdf generated. Pdf is moving tabular contents from page next page to previous page. The code we are using is below. What are the settings needed to add keep the tabular structure consistent between docx and pdf.

Document doc = new Document(inputStream);
FontSettings fontSettings = new FontSettings();
fontSettings.setFontsFolder(AppConstants.RESOURCES_ROOT, false);
doc.setFontSettings(fontSettings);
com.aspose.words.PdfSaveOptions options = new com.aspose.words.PdfSaveOptions();
options.setUpdateSdtContent(true);
options.setCustomPropertiesExport(PdfCustomPropertiesExport.STANDARD);
options.setExportDocumentStructure(true);
options.setSaveFormat(SaveFormat.PDF);
doc.save(outStream, options);

@ramachandra1988 The problem is not reproducible using the latest 24.1 version of Aspose.Words for Java. As I can see you are using an old 21.11 version. Please try using the latest version and let us know if the problem still persists on your side.

Thank you works with latest versions.

1 Like