Skip to content

Get all photos in a folder and create a PDF document with them

Notifications You must be signed in to change notification settings

fredtux/jpg-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jpg-to-pdf

Get all photos in a folder and create a PDF document with them

Install requirements

pip install -r requirements.txt

Usage (Python)

For help

python3 jpg-to-pdf.py -h

Getting files from directory and compressing

python3 jpg-to-pdf.py -i inputDirectory -o out.pdf -c

Getting files from zip archive and compressing

python3 jpg-to-pdf.py -i archive.zip -z -o out.pdf -c

Compressing PDFs

This script uses PDFTron. Get a key from here https://www.pdftron.com/pws/get-key

Usage (Bash)

Make sure the jpg-to-pdf.py file is in the PATH. Then add the bash script to the PATH. Make sure the bash script is executable with

chmod +x jpg-to-pdf

Getting files from directory and compressing

For help

jpg-to-pdf -h

Getting files from directory and compressing

jpg-to-pdf -i inputDirectory -o out.pdf -c

Getting files from zip archive and compressing

jpg-to-pdf -i archive.zip -z -o out.pdf -c

About

Get all photos in a folder and create a PDF document with them

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published