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
Convert PowerPoint PPT/PPTX Slides to SVG in Python
This file contains hidden or 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