Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salmedina/pdf2thumb
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.
https://github.com/salmedina/pdf2thumb
Last synced: 12 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/salmedina/pdf2thumb
- Owner: salmedina
- Created: 2017-03-28T18:01:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T22:10:22.000Z (over 2 years ago)
- Last Synced: 2024-08-01T22:55:51.933Z (3 months ago)
- Language: Python
- Size: 7.15 MB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.imagemagick.org/script/binary-releases.php).
## 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
```![](demo/report_3.png)
#### 5 pages
```
./pdf2thumb.py demo/report.pdf demo/report_5.png 5
```![](demo/report_5.png)
#### All pages
```
./pdf2thumb.py demo/report.pdf demo/report_all.png
```![](demo/report_all.png)