Hello Team,
We are using Aspose.slides for JAVA to convert PPTX to JPG images, we found below issues for two of our sample files, could you please help on this?
-
PPTFile.pptx: After converted it to slide-1.jpg, the direction of text has been changed which is highlighted with yellow colour as compared with original PPT.
-
Figure3a.pptx: After converted it to slide-2.jpg, character “n“ from “Decision“ word moved to next line. We observed same behaviour when converted it other formats like PDF or PNG.
Sample code:
String dir = "/Users/mb/Documents/mb/es/cfiles/ppts/";
Presentation pres = new Presentation(dir + "Figure3a.pptx");
try {
for (ISlide sld : pres.getSlides()) {
// Create a full scale image
BufferedImage bmp = sld.getThumbnail(1f, 1f);
// Save the image to disk in JPEG format
ImageIO.write(bmp, "JPEG", new java.io.File(String.format(dir + "Slide_%d.jpg", sld.getSlideNumber())));
}
} catch (IOException e) {
} finally {
if (pres != null) pres.dispose();
}
Please find attached sample files of PPTX and JPGppts.7z (212.6 KB)
.