Skip to content

hashi0203/imgs2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

imgs2pdf

This Python script converts images (png, jpg, etc..) in a directory to one pdf file.

Usage

$ python3 /path/to/imgs2pdf.py -o /path/to/output.pdf -f /path/to/image_folder -e .png .jpg -c 188 65 1290 829 -a 90 -l -u

You can run this script from any directory.

Run the following command for any help.

$ python3 imgs2pdf.py -h

Options

  • --output, -o: output pdf file name (default: output.pdf)
  • --folder, -f: source images directory name (default: .)
  • --extensions, -e: source images extensions (default: png)
  • --crop, -c: left top right bottom (crop -> rotate -> flip) (default: -1)
  • --angle, -a: clockwise image rotation angle (0, 90, 180, or 270) (crop -> rotate -> flip) (default: 0)
  • --horizontal, -l: horizontal flip (crop -> rotate -> flip)
  • --vertical, -u: vertical flip (crop -> rotate -> flip)
  • --reverse, -r: concat images in reverse order
  • --store, -s: store intermediate outputs
  • --pdfsettings, -p, specify compression level (-1: all types, 0: original, ..., 5: smallest) (default: -1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages