Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active September 27, 2021 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/7f1775b584fd0f5a3750b72916531f63 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/7f1775b584fd0f5a3750b72916531f63 to your computer and use it in GitHub Desktop.
Convert PowerPoint to SVG using Android
// Load presentation
Presentation pres = new Presentation("presentation.pptx");
try {
// Access each slide
for(ISlide sld:pres.getSlides())
{
// Create a memory stream object
FileOutputStream svgStream = new FileOutputStream(String.format("slide_%d.svg", sld.getSlideNumber()));
// Generate SVG image of slide and save in memory stream
sld.writeAsSvg(svgStream);
// Close stream
svgStream.close();
}
} catch (IOException e) {
} finally {
pres.dispose();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment