Any help to debug? I just want to load images from a folder, put them in the placeholders and save the pptx under a new name.
I am getting this error from my code:
AttributeError: 'SlidePlaceholder' object has no attribute 'insert_picture'
import pptx
import pptx.util
import glob
import scipy.misc
prs_exists = pptx.Presentation("NEW_SITE_SSVT_REPORT_PYTHON.pptx")
src = "C:\\Work\\Test\\*.*"
files = glob.glob(src)
index = 0
for slide in prs_exists.slides:
for pHolder in slide.shapes: #placeholders:
if pHolder.is_placeholder:
pHolder.insert_picture(files[index])
index = index + 1
prs_exists.save("test.pptx")```