Git Product home page Git Product logo

pdfslides's Introduction

PDFSlides

by Sam Ehrenstein ([email protected])

Overview

This program is designed to display PDF files in a looped slideshow, although it can display any PNG images. For PDFs, it is also able to convert PDF files to PNG images.

Requirements

This program requires Python 3.2.x or greater, as well as the external libraries wand and PIL. Both can be installed from PIP.

Usage

Image directory structure

All images must be in a directory called images, a subdirectory of the directory containing viewer.py. As of now, the directories will be displayed in sorted order, as determined by Python.

Within each directory are PNG files named in the form #.png, where `# is a number. They will be displayed in numeric order.

With PDFs

Any PDF in the same directory as viewer.py will be converted to PNG images, numbered by page. They will be located in images/<filename minus extension>.

With other images

If you wish to use other images files, simply create a directory in images with the files named as described above. Non-numeric characters in file names will crash the program.

Displaying the slideshow

When viewer.py is run, it will convert (if necessary) any PDFs in the same directory. Once this is done, it will start the slideshow. The delay can be controlled by changing the delay variable. The slideshow can be ended by pressing Ctrl+Shift+R.

Command line options

If viewer.py is run through the command line, the delay between slides (in milliseconds) can be specified with the --delay or -d option.

pdfslides's People

Contributors

qscgy avatar

Watchers

 avatar  avatar  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.