Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 1.04 KB

README.md

File metadata and controls

42 lines (40 loc) · 1.04 KB

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