scanny / python-pptx

Create Open XML PowerPoint documents in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert PPTX slide to Image

vignesh0710 opened this issue · comments

Is it possible to convert slides to images

#python-pptx version == 0.6.2
from pptx import Presentation

prs = Presentation(file_path)

for i, slide in enumerate(prs.slides):
    slide.export(img_path)

No. You might be able to manage that somehow with LibreOffice. I think you might have to convert to PDF first and then PDF to image with Ghostscript or something. That's the only way I've heard of folks doing it aside from a Microsoft proprietary or Windows-only solution..