When converting an ODT to PDF containing a table, the table rows are rendered bigger than the original, causing the PDF to render over two pages instead of one.
This is demonstrated in the attached zip:
- Test Chart - 20230124.odt is the original ODT file
- Test Chart - OpenOffice.pdf is the ODT file exported to PDF using OpenOffice
- Test Chart - Aspose.pdf is the ODT file exported to PDF using Apose Words for Java
Test Chart.zip (114.1 KB)
Is there any way to get Aspose to respect the height of the rows in the original document?
The file is exported using:
Document document = new Document("Test Chart - 20230124.odt");
int format = FileFormatUtil.contentTypeToSaveFormat("application/pdf");
SaveOptions options = SaveOptions.createSaveOptions(format);
document.save("Test Chart - Aspose.pdf", options);
The same problem can be seen using the online converter at Convert Files Online - Word, PDF, HTML, JPG And Many More