We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Covert PPT file to SVG files- and texts are moved

Hi there


I am using aspose slides 17.2 to make svg files from ppt files.
In the result, some text are moved. It is quite different from the origin file.

Here is my test code:
String fileName = “Pusheen Box _20141124_locked.pptx”;
String password = “123456”;
Presentation pre = null;

if (StringUtils.isEmpty(password)) {
pre = new Presentation(fileName);
} else {
LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword(password);
pre = new Presentation(fileName, loadOptions);
}

File file = new File(fileName);
file.mkdirs();

for (int i = 0; i < pre.getSlides().size(); i++) {

ISlide slide = pre.getSlides().get_Item(i);
slide.writeAsSvg(new FileOutputStream(fileName + “/” + (i + 1) + “.svg”));

}
}

Please help me figure it out what happened, thank you

Hi Cheng,

I have worked with presentation file shared by you and have been able to observe the issue specified in exported SVG. An issue with ID SLIDESJAVA-36398 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

We are sorry for your inconvenience,