Convert slides in PowerPoint PPT or PPTX to SVG in Python: https://blog.aspose.com/2022/02/01/convert-powerpoint-ppt-slides-to-svg-in-python/
Last active
February 17, 2022 09:33
-
-
Save aspose-com-gists/4124218be7891536ba57471e1cff2f0f to your computer and use it in GitHub Desktop.
Convert PowerPoint PPT/PPTX Slides to SVG in Python
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
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