Skip to content

Split PDF pages horizontally into two separate images utilizing Pillow image processing and Poppler-utils.

License

Notifications You must be signed in to change notification settings

ayoubelmhamdi/pdf_divider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divide/Split PDF pages into left and right halves.

Usage

  • Install requirements: pip install -r requirements or pip install pdf2image pillow tqdm

  • Options:

  • -f, --file: Input PDF file

  • -d, --dir: Output directory

python3 main.py -f input.pdf -d output/

INFO:

To know the DPI and image colors, we can use this options: -f, the first image is set to zero and the -l set to the last image.

pdfimages -list ./foo.pdf -f 0 -l 13

About

Split PDF pages horizontally into two separate images utilizing Pillow image processing and Poppler-utils.

Topics

Resources

License

Stars

Watchers

Forks