I successfully automated the creation of pptx presentations using python-pptx, customising background, inserting text, images, etc. How can I add custom Transitions to my slides? (E.g. “Transitions” > “Fade” from PowerPoint). As I could not find a function, my idea is to use workaround functions (going deep into xml): where do I start? python 3.10.4, PowerPoint v16.54, MacOS Big Sur
Tag: python-pptx
How to avoid zipfile error with python-pptx saving files
I am using the python-pptx package to create a number of .pptx files from a series of dataframes. All works well with adding slides and such until it comes time to call prs.save() where “prs” is the Presentation. Doing so leads to a zipfile error re: open handles needing to be closed. I have done some research on the history
How can I get the dimensions of a picture placeholder to re-size an image when creating a presentation and inserting a picture using python-pptx?
I’m trying to insert a picture that is re-sized to fit the dimensions of the picture placeholder from a template using python-pptx. I don’t believe the API has direct access to this from what I can find out in the docs. Is there any suggestion of how I might be able to do this, using the library or other? I
Python PPTX read slide number (page number)
I’m doing a custom table of content for slides that is generated by Python-PPTX. For the slides, footer and slide numbers already set up, and I can already view it in resulting PPTX. I believe slide numbers already exist, just needed to be read. My question is, whether the slide number information is accessible from slide object, or perhaps somewhere