Giter Site home page Giter Site logo

pdf2pptx's Introduction

pdf2pptx

Utility to convert a PDF slideshow to Powerpoint PPTX.

Renders each page as a PNG image and creates the resulting Powerpoint slideshow from these images. Useful when you want to use Powerpoint to present a set of PDF slides (e.g. slides from Beamer). You can then use the presentation capabilities of Powerpoint (notes, ink on slides, etc.) with slides created in LaTeX.

I use this to present PDF slides on a Surface Pro so that I can annotate them with a stylus as I present.

Uses PyMuPDF and python-pptx to do the hard work.

Installation

pip install pdf2pptx

Usage

The following will create a slides.pptx file from a slides.pdf file.

pdf2pptx slides.pdf

Run pdf2pptx --help for more info on the command line interface.

pdf2pptx's People

Contributors

kevinmcguinness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pdf2pptx's Issues

add integration support, found bugs?

It would be of great help if you would add integration support into other projects, as in adding the ability to import functions from you module.
I have tried this workaround:
in __init__.py adding from .cli import main
and in my code from pdf2pptx import main as create_pptx
and using it like this create_pptx(["INPUT","-o OUTPUT"])
which allowed me to use debug features on your code. only to find out that certian attributes and methods names' are defined slightly diffrently (maybe becuase of an update) e.g:
pageCount ->page_count
loadPage ->load_page
getPixmap -> get_pixmap

but I got stuck on image_data = pixmap.getPNGData() at line 63
as I didnt seem to find that function or something similar

would appreciate a fix, thanks

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.