Platzhalter für Bilder in Python-PPTXPython

Python-Programme
Anonymous
 Platzhalter für Bilder in Python-PPTX

Post by Anonymous »

Ich möchte eine Präsentation mit Python-PPTX mit 3 Bildern in einer Zeile auf jeder Folie machen. < /p>

from pptx import Presentation
from pptx.util import Inches

height = Inches(3) #size
top = Inches(0) #y-position

img = 'image001.png'

prs = Presentation() #create presentation
blank_slide_layout = prs.slide_layouts[6] #define side layout

for j in range(0,5):
slide = prs.slides.add_slide(blank_slide_layout) #add slide
left = Inches(0) #x-position
for i in range(0,3):
pic = slide.shapes.add_picture(img, left, top, height=height)
left = left+height

prs.save('test.pptx')

< /code>

Hier funktioniert dies, aber ich möchte die Platzhalter verstehen.pic1a
pic2a
pic3a
pic1b
pic2b
...
< /code>

Und ich brauche die Bilder in der Präsentation wie < /p>

pic1a pic1b pic1c
pic2a..
pic3a...
< /code>

Wie kann ich Platzhalter hinzufügen und zu ihnen springen.
Das Handbuch hilft mir nicht. < /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post