Skip to content

This little program generates a thumbnail of a certain pdf for quick visualization. It is based on ImageMagick as it has all the functionality required.

Notifications You must be signed in to change notification settings

salmedina/pdf2thumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

pdf2thumb

This is a little Python program which extracts a thumbnail view from a given pdf file. You can select the number of pages to be displayed. Hope this helps other to display their papers in their sites.

Requirements

ImageMagick

This program is just a shell of calling procedures for ImageMagick which is the package that does all the magick (o.O?).

The installation instructions can be found here.

Usage example

It is fairly easy to use, you only need to give it:

  • the pdf path
  • where the thumbnail will be stored
  • and optionally the number of pages:

3 pages

./pdf2thumb.py demo/report.pdf demo/report_3.png 3

5 pages

./pdf2thumb.py demo/report.pdf demo/report_5.png 5

All pages

./pdf2thumb.py demo/report.pdf demo/report_all.png

About

This little program generates a thumbnail of a certain pdf for quick visualization. It is based on ImageMagick as it has all the functionality required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages