python - How can I combine two presentations (pptx) into one master presentation? -


i'm part of project team created pptx presentations present clients. after creating of files, need add additional slides each presentation. of new slides same across each presentation.

what best way accomplish programmatically?

i don't want use vba because (as far understand) have open each presentation run script.

i've tried using python-pptx library. documentation states:

"copying slide 1 presentation turns out pretty hard right in general case, won’t come until more of backlog burned down."

i hoping following work -

from pptx import presentation  main = presentation('universal.pptx') abc = presentation('test1.pptx')  main_slides = main.slides.get(1) abc_slides = abc.slides.get(1)  full = main.slides.add_slide(abc_slides[1])  full.save('full.pptx') 

has had success that?


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -