A Swiss Army Knife sort of python scripts collection to manipulate PDFs. It relies on:
- pdfjam
- pdftk
- pdfunite (poppler)
- ghostscript
- mupdf-tools
The project is available on pypi: https://pypi.org/project/PDFknife/
pip install PDFknife
- pdfknife-A5.py -- Turn a PDF in A5 format
- pdfknife-even.py -- Add blank page to odd pages PDF
- pdfknife-extract -- Extract images from PDF
- pdfknife-merge.py -- Merge PDFs
- pdfknife-recto.py -- Add blank page between each original page
- pdfknife-reverse.py -- Reverse page order
- pdfknife-shrink.py -- Compress a PDF
- pdfknife-split.py -- Make one page per file
- pdfknife-trim.py -- Change the margins
BSD3, See LICENCE file.