OpenOffice Text (odt) rendering broken

ODT rendering/saving is broken in Java Aspose.Words 16.1.0.



Slides 16.1.0, Cells 8.7.1 work fine.



When I try to export a ODT to PNG, the file is rendered with a tiny font and most of the layout is messed up.

The code works fine for Word (docx) documents.



Document doc = new Document(inputStream);



ImageSaveOptions options = new ImageSaveOptions(com.aspose.words.SaveFormat.PNG);

options.setResolution(120);

options.setPageIndex(page);

options.setPageCount(1);



ByteArrayOutputStream baos = new ByteArrayOutputStream();

doc.save(baos, options);



return ImageIO.read(new ByteArrayInputStream(baos.toByteArray()));



The same happens, if I try to save it as a PDF:



Document doc = new Document(inputStream);

PdfSaveOptions options = new PdfSaveOptions();

doc.save(baos, options);



Cheers, Thomas

Hi Thomas,


Thanks for your inquiry.

We have just released a new version of Aspose.Words (16.2.0) and would suggest you please upgrade to the latest version from the following link. Hope, this helps:

Download latest version of Aspose.Words for Java

If the problem still remains, please zip and attach following font file here for testing:

  • Liberation Serif

Also, please attach Aspose.Words generated output PNG file showing the undesired behavior here for testing. We will investigate the issue on our end and provide you more information.

Best regards,