Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a PowerPoint presentation using Python?

So I have a collection of close to 90 photographs along with a caption and the date stored in a text file. The images are of variable sizes and I would like to automate the procedure of converting this data into a PowerPoint presentation, with one picture on one slide along with its date and caption as the Title. Any reliable methods present?

like image 307
martianwars Avatar asked Jul 05 '15 18:07

martianwars


People also ask

Can we automate PPT using python?

PowerPoint is the popular presentation software commonly used for office and educational slide shows. Creating presentations manually is time consuming. This python based project can create PowerPoint presentation automatically within few minutes.

What is PPT in python?

python-pptx is a Python library for creating and updating PowerPoint (. pptx) files. A typical use would be generating a customized PowerPoint presentation from database content, downloadable by clicking a link in a web application.

How do I open a PPT in python?

If you just want to launch the user's default viewer for powerpoint files, you can use the xdg-open shell command. get the information or words in the file. do not ask the same question multiple times; it isn't helpful to anyone.


2 Answers

Check out the python-pptx library. Its useful for creating and updating PowerPoint .pptx files.

Also for some quick examples in python-pptx with screenshots, you can check this link.

like image 72
Rahul Gupta Avatar answered Oct 04 '22 07:10

Rahul Gupta


Another approach is to automate powerpoint through win32com. I have succesfully done this to augenerate presentations with lots of images following the instructions at http://www.s-anand.net/blog/automating-powerpoint-with-python/ .

like image 26
Dov Grobgeld Avatar answered Oct 04 '22 05:10

Dov Grobgeld