Giter Site home page Giter Site logo

mfkiwl / pdf-to-powerpoint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomlkoller/pdf-to-powerpoint

0.0 1.0 0.0 26 KB

Python script to cut a PDF Presentation into Slides and fill a Powerpoint presentation with the images of those slides.

License: MIT License

Python 100.00%

pdf-to-powerpoint's Introduction

PDF to Powerpoint Converter

This repository contains a python script to convert a PDF presentation (e.g. made with Latex) to a Powerpoint presentation. It does not convert the presentation into an editable format. Instead it converts the PDF to images and automatically loads the images into a pptx.

The script is intended to be used for digital classes when your class has a high amount of math formulas:

  1. Create a PDF presentation (aspect ratio 16:9) in Latex, where you can easily format your math
  2. Convert it with convert_to_pptx.py to a Powerpoint presentation
  3. Use the Powerpoint tools to speak the text to your slides and create a video to present to your students

As all slides are saved as images, the created presentations are quite large. However, as they are supposed to end in a video, that does not matter.

If you require and editable powerpoint file try any online or offline converter. In my case, they failed to format the math properly.

Requirements

  1. Python3
  2. pdf2image
  3. python-pptx

Installation:

To install the necessary libraries for python you may use pip:

pip install pdf2image python-pptx

Usage

The usage format is: `python3 convert_to_pptx.py <path_to_input_pdf> <path_to_output_pptx>

The script will need the template.pptx in the calling directory. It creates a directory "image_temp/" to store the png files corresponding to the pdf slides. You may delete this after the script runs.

If you want to edit singles slides you can use the script to create the png images and exchange them in your pptx.

pdf-to-powerpoint's People

Contributors

tomlkoller avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.