Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active February 17, 2022 09:33
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/4124218be7891536ba57471e1cff2f0f to your computer and use it in GitHub Desktop.
Save aspose-com-gists/4124218be7891536ba57471e1cff2f0f to your computer and use it in GitHub Desktop.
Convert PowerPoint PPT/PPTX Slides to SVG in Python
import aspose.slides as slides
# Load the presentation
with slides.Presentation("presentation.pptx") as presentation:
# Loop through the slides
for slide in presentation.slides:
# Export slides to SVG format
with open("presentation_slide_{0}.svg".format(str(slide.slide_number)), "wb") as file:
slide.write_as_svg(file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment