Questions tagged [python-pptx]

python-pptx is a Python library for creating and updating PowerPoint (.pptx) files.

python-pptx is a Python library for creating and updating PowerPoint (.pptx) files.

Latest documentation

Available from pypi.

734 questions
-1
votes
1 answer

Error when using pyinstaller:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 4055: invalid start byte

I have an issue when i compile a python code with pyinstaller. The python code is using os, datetime, python-pptx, and tqdm packages. When i use this line below for compile: C:\test>pyinstaller -F Final_ver.py I get this error message below: (Sorry…
Jess Kim
  • 1
  • 2
-1
votes
1 answer

How to copy 1 slide of a PowerPoint, paste it to a specific location of another PowerPoint, then create a new Powerpoint from it using python-pptx?

I'm able to copy the second slide of a test.pptx to a copy.pptx, and create a new copy2.pptx. But the new PPT is corrupted. Here is my code: import collections import collections.abc import copy from pptx import Presentation def copy_slide(prs,…
DecoderS
  • 64
  • 6
-1
votes
1 answer

How can the title be updated in an existing ppt slide using python

I have an title name to update which is dynamic I will be passing that through uipath, but how can the title be updated to an existing ppt
-1
votes
1 answer

Why can I not install python-pptx using pip in Jupyter notebook?

I am currently working on a project which involves extracting content from PowerPoint slides to text file using python-pptx package. I tried using !pip install python-pptx but showed up. Does anyone know how to resolve this issue?
-1
votes
1 answer

Is it possible to create a line graph in pptx-python from a dataframe?

I was wondering if it's possible to take a dataframe that you created in python and have the values automatically populate in a PowerPoint line graph using the pptx-python package? I've looked at all of the examples that I could find and it seems…
PRuss
  • 21
  • 3
-1
votes
2 answers

ModuleNotFoundError: No module named 'wanda'

I am trying use to create an image with logo on it I have "logo.png" and try to add logo in multiple images and add into the ppt using pptx in python but I have problem about how to install wand module in my pc.
-1
votes
1 answer

How to generate an xml or json from the text extracted from a slide?

I'm using this code to extract the text from a slide show using pptx, how do I generate an xml or json file containing the text for each slide? local_pptxFileList = ["/content/drive/MyDrive/Slides/Backlog Management.pptx"] for i in…
Andre
  • 11
  • 3
-1
votes
1 answer

How to automate the conversion of PPT into PDFs?

I currently have a template for certificate in PPT format and wish to convert (or print) it to PDF. I have a python list of people names that I am passing to python in the form of a list. I need help with library and code to write a python script to…
LVA
  • 39
  • 1
  • 7
-1
votes
1 answer

How to access the type of mso autoshape using python pptx?

I know how we can add a auto_shape of a certain type, ISOSCELES_TRIANGLE for example. But how can we find the triangles in the shapes of a slide? Is there a way to access MsoAutoShapeType and get the type. I want to count how many triangles there…
Rami.K
  • 189
  • 2
  • 11
-1
votes
1 answer

(python-pptx) How do I create slides where the title of each slide is a string from a list?

So for example, I have this list: titles = ['A', 'B', 'C'] Now I want each title to be the title of each slide so slide 1 = A, slide 2 = B and slide 3 = C. How would you do it?
snocc
  • 19
  • 4
-2
votes
1 answer

Using a powerpoint file with existing template

I am working on generating a powerpoint file using python-pptx. How do I make the file maintain the existing template on the file without overwriting the template on the file.
K. Abhulimen
  • 137
  • 1
  • 13
-3
votes
1 answer

Python .pptx to .pdf file not found error

I'm trying to convert the .pptx files in the folder to .pdf using Python. I did some research and found some codes for this. import os import comtypes.client import glob dosya_yolu = "C:/temp/denememrt" def convert_ppt_to_pdf(input_path,…
Cansinn
  • 1
  • 4
-3
votes
1 answer

Open Powerpoint and select a specific slide-number using Python?

is there any way to open a Powerpoint with python and goto a specific slide-number. For example i input 5 with an input()-statement and then powerpoint open a specific ppt-file and go to the slide 5? (i am general looking for a solution for windows…
Rapid1898
  • 895
  • 1
  • 10
  • 32
-3
votes
1 answer

How can we generate CSS for a slide in a presentation (PPTX) using Python/.NET?

I am trying to make an editor and need to parse slide content into an HTML canvas and I am unable to extract CSS for the same.
1 2 3
48
49