Read the complete article on how to convert PowerPoint presentations to SVG in Android: https://blog.aspose.com/2021/09/27/convert-powerpoint-to-svg-in-android/
Last active
September 27, 2021 14:26
-
-
Save aspose-com-gists/7f1775b584fd0f5a3750b72916531f63 to your computer and use it in GitHub Desktop.
Convert PowerPoint to SVG using Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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