add image pptx python

35

from pptx import Presentation
import os
 
prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[8])
placeholder = slide.placeholders[1]
picture = placeholder.insert_picture('001.png')
prs.save("ESEMPIO.pptx")
os.startfile("ESEMPIO.pptx")
add_picture(image_file, left, top, width=None, height=None)

Comments

Submit
0 Comments