Closed JSVJ closed 3 months ago
According to the docs there is no export_image
method. See https://python-pptx.readthedocs.io/en/latest/api/slides.html#slide-objects.
And what would you expect it to do, given python-pptx is not running the PowerPoint (rendering) engine?
If you wanted to iterate over the images on a slide that's a different matter.
I see, thanks. I'd like to save all the slides as images. Is there a way to achieve this?
Not within python-pptx. Possibly you have some automation available to you for screen / window grabs - on whatever platform you're on.
Thanks. I am searching for an option to export to pdf. Is there an option to export ppt into a pdf file?
Not with python-pptx. You probably could - depending on platform - automate doing it in PowerPoint or Open Office.
Thanks
I'm trying to load a PPT file and save each and every slide as a PNG image. I am getting this error when I try to use the Slide object.
AttributeError: 'Slide' object has no attribute 'export_image'
Can anyone advice me what to do here?I used to work with this long back and slide.export_image() was working back then. was it removed in the current update? How to achieve this in the latest version?
Code: