scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.26k stars 499 forks source link

How to merge two pptx files into one pptx file? #922

Closed Dragon-S closed 5 months ago

MarioTawfelis commented 7 months ago

Are you looking for something like this?

from pptx import Presentation

prs1 = Presentation(presentation1.pptx)
prs2 = Presentation(presentation2.pptx)

for slide in prs2.slides:
    prs1.slides.add_slide(slide)
mszbot commented 5 months ago

Duplicate https://github.com/scanny/python-pptx/issues/934

scanny commented 5 months ago

Thanks @mszbot :)