This commit is contained in:
marcus hinz
2026-06-12 10:40:47 +02:00
commit 52ce98626c
15 changed files with 903 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
"""Fügt Folie2, Folie3, Folie4 zu einer Datei zusammen (Reihenfolge 2, 3, 4)."""
import copy
from pptx import Presentation
base = "/home/marcuh/claude-projects/limbach/"
dst = Presentation(base + "Folie2.pptx") # Seite 1 = Folie 2
blank = dst.slide_layouts[6]
for fname in ("Folie3.pptx", "Folie4.pptx"): # Seiten 2 und 3
src = Presentation(base + fname)
new_slide = dst.slides.add_slide(blank)
for shape in src.slides[0].shapes:
new_slide.shapes._spTree.append(copy.deepcopy(shape._element))
out = base + "Workshop_LIS.pptx"
dst.save(out)
print("saved", out)