Hi there
I am using Aspose Slides for JAVA to convert PowerPoint file into SVG format.
Here is my code for test:
String fileName = “issue.pptx”;
Presentation pre = new Presentation(“custom/input/pptx/”+fileName);
String dirName = fileName;
File file = new File(“custom/output/pptx/” + dirName);
file.mkdirs();
SVGOptions ops = new SVGOptions();
for (int i = 0; i < pre.getSlides().size(); i++) {
ISlide slide = pre.getSlides().get_Item(i);
slide.writeAsSvg(new FileOutputStream(“custom/output/pptx/” + dirName + “/” + (i + 1) + “.svg”));}
Take the file I uploaded in the attachment as example with 2 question.
1.With the slide file containing different type of image, in the result, they are eventually converted into PNG format. So that some of GIF images will lose animation in the result.
2.In the result, images becoming base64 strings, there should be file type in the beginning of these base64 strings, but it didn’t.
data:;base64,iVBORw0KGgoAAAANSUhEUg…
Craig
imageTypeTest_aspose.pptx.zip (496.7 KB)
result.zip (80.5 KB)