Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list all placeholders python pptx

prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[8])
for shape in slide.placeholders:
     print('%d %s' % (shape.placeholder_format.idx, shape.name))
Source by python-pptx.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #list #placeholders #python #pptx
ADD COMMENT
Topic
Name
4+1 =