Category "python-pptx"

Unable to delete PowerPoint Slides using Python-pptx

I am trying to delete PowerPoint slides containing a specific keywords using Python-pptx. If the keyword is present anywhere in the slide then that slide will b

python-pptx: Any way to make text vertical?

Is there any way to control text direction in python-pptx? What I want to do is make text in shapes vertical as shown in the image below. I have searched the do

Extract & Replace text for python-pptx graphicframe

I am extracting data from a slide, so for table, chart and normal shape which has a text frame, I am able to get text and replace it. But when it comes to Smar

Python and PowerPoint replace '<br><br>' becomes '_x000D_'

I'm creating a PowerPoint with Python pptx and my query result string contains the html '<br><br>' and I'm trying to replace it with '\n' like: TDs

How to extract FREEFORM shapes from ppt and save it in png file using pptx

I have a ppt file that contains some maps(for eg. world map) tagged as freeform shape in xml file. I want to decode the freeform object and extract it in png or

Adding video in ppt using python cannot be played

I have to insert a video in ppt using python-pptx library. And also i have added the below code to insert it: from pptx import Presentation from pptx.util impo

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

Python-pptx formatting datalabels after adding text

As I needed to add custom text to a chart data labels in python-pptx I used for point in plot.series[1].points: frame = point.data_label.text_frame frame

Alter slide layout with Python pptx

I am attempting to alter some text which is on a layout that I will be using for a handful of slides. I will be creating the same pptx document for a number of