Skip to content

lkora/pdf_to_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF to images

A small script that converts a list of PDF files to individual images and also a big stacked (horizontally or vertically) image.

Dependencies

  • pdf2image
  • numpy

Usage

python3 main.py -h

  -h, --help                        show this help message and exit
  -f FILES [FILES ...], --files FILES [FILES ...]
                                    Path to the PDF files to be converted
  -o [OUTPUT_DEST], --output-path [OUTPUT_DEST]
                                    Output result path (default: current working directory)
  -j, --jpeg                        Export as JPEG instead (default: png)
  -i, --invert-colors               Output image will have inverted colors (default: False)
  -v, --vertical                    Resulting image will be vertical (default: horizontal)

python3 main.py -f doc1.pdf doc2.pdf

About

Converts PDF files to images of different shapes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages