Checking if PowerPoint slide is hidden using pptx in python

113 Views Asked by At

I'm using python-pptx to read data from PowerPoint presentations into my python script. In the PowerPoint presentations I'm woring with a view slides are hidden. For my reading process I only want to go through the visible slides. Unfortunately, I didn't find any isHidden() or isVisible() function in the documentation. Is this somehow possible to ask for the visibility status?

Here my code which goes through the slides:

from pptx import Presentation
ppt=Presentation(file)
for slide in ppt.slides:
    if side.isVisible(): #does not work!
        #do stuff
0

There are 0 best solutions below