Relative Content

Tag Archive for pythonpowerpointpython-pptx

Python – PPTX How to set table margins

I am working in python to create a script that spits out a powerpoint report. I want to add some tables but the tables that are getting generated are too big with too much wasted space. I’ve figured out how to manually set the table margins in powerpoint itself but I want a way to have it changed automatically. If you select the table in powerpoint and go to format shape -> text options -> text box then set all the margins to 0. I want to have my script do that atuomatically. I haven’t figured out how to do this. Anyone figure this issue out?

Automatically Updating Images in Slides Using python-pptx

I’m currently working with the python-pptx library to manage PowerPoint presentations. I have images in the slides linked to online sources and I want these images to update automatically whenever the presentation is opened, referencing their original online sources.