Hi
I am using Aspose Slides 15.5.0 to convert PowerPoint files to svg files.
I found a problem:
The text of the result from slide 3 is shifted right, and make a page break,
which make the text covered by the picture below.
Could you please help me solve this? Appreciate your help!
P.S. The origin ppt file and the result svg is in the attachement.
P.P.S Following is my code:
String blockID = “2-1.ppt”;
// UUID.randomUUID().toString();
File file = new File(“custom/output/pptx/”+blockID);
file.mkdir();
Presentation pre = new Presentation(“custom/input/pptx/”+blockID);
for(int page = 1; page<=pre.getSlides().size(); page++){
ByteArrayOutputStream out = new ByteArrayOutputStream();
ISlide slide = pre.getSlides().get_Item(page-1);
slide.writeAsSvg(out);
byte[] content = new String(out.toByteArray()).getBytes(Charset.forName(“UTF-8”));
IoUtil.write(new FileOutputStream(“custom/output/pptx/”+blockID+"/"+page+".svg"), content);
}