Hi Aspose Support Team,
I have following problem with Aspose 2.9.3 and 2.9.4 ( I did not try earlier versions ). When I open the attached Presentation, which was produced using Aspose, and then generate thumbnails or PDFs out of it using Aspose, the content is missplaced. If I open the presentation with PowerPoint, everything looks ok. I found out following reproducable behaviour.
- When opening the Presentation with PowerPoint, the Presentation looks ok.
- When opening with Aspose and render to PDF or a thumbnail, the text starts at a wrong position.
- When I open the presentation with PowerPoint and then save it again using PowerPoint, and then use Aspose to generate Thumbnails or PDF from it, the result looks ok
- By comparing the PPTX produced by Aspose before opening and Saving with PowerPoint with the one after opening and saving with PowerPoint, I found out, that the difference is in pretty formattd XML. When I directly save the PPTX using Aspose PresentationEx.save function, the XML in the PPTX file is pretty formatted ( newlines between tags and a lot of whitespaces). After opening and saving it with PowerPoint, the XML is in inline format (all within one line ).
I use following code to Open and generate the PDF:
InputStream pres = TestThumbnailGeneration.class.getResourceAsStream("shiftedContentInThumbnail.pptx");
PresentationEx presentation = new PresentationEx(pres);
presentation.save(new FileOutputStream(new File(targetFolder, "shiftedContentInThumbnail.pdf")), SaveFormat.PDF);
Is there some Java XML configuration which I could change to correct this behaviour, or is this a bug in Aspose?
Thank you with Regards
Marco