PDFknife
A Swiss Army Knife sort of python scripts collection to manipulate PDFs. It relies on:
- pdfjam
- pdftk
- pdfunite (poppler)
- ghostscript
- mupdf-tools
Install
The project is available on pypi: https://pypi.org/project/PDFknife/
pip install PDFknife
Tools
pdfknife-A5-- Arrange two A5 pages side by side on A4 paperpdfknife-clean-- Recompress and clean a PDF with Ghostscriptpdfknife-cut-- Cut margin marks and toolbox artefacts off a PDFpdfknife-even-- Extract only even pages from a PDFpdfknife-extract-- Extract embedded images and fonts from a PDFpdfknife-margin-- Add a white margin around PDF pagespdfknife-merge-- Merge several PDF files into onepdfknife-recto-- Arrange two A5 recto pages side by side on A4 (top-to-bottom)pdfknife-reverse-- Reverse page order of a PDFpdfknife-rotate-- Rotate all pages of a PDF by a given anglepdfknife-shrink-- Compress/reduce file size of PDFs with Ghostscriptpdfknife-split-- Split a multi-page PDF into separate single-page PDFspdfknife-tearpages-- Remove the first and/or last page of a PDFpdfknife-trim-- Trim (crop) edges of PDF pages
License
BSD3, See LICENSE file.
Metadata
Release files for PDFknife 2026.8.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdfknife-2026.8.14.0.tar.gz | 10.6 kB | Without provenance | Details for pdfknife-2026.8.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdfknife-2026.8.14.0-py3-none-any.whl | Python 3 | none | any | Details for pdfknife-2026.8.14.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / pdfknife-2026.8.14.0.tar.gz
| Download URL | pdfknife-2026.8.14.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
845346a53a44a921be7d5fe27a954f817c40a3483ef7a02f376f78cd2936e9df
|
|
BLAKE2b-256 checksum How to use checksums |
7fd0d63aa6e322440423680fffe1b5d7569e986e0ac982841a5aa4c102833a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Release files / pdfknife-2026.8.14.0-py3-none-any.whl
| Download URL | pdfknife-2026.8.14.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae9f4d90e6271dd93cfabd875f46132519da14e57465b66cb3a62625c0fb4dcc
|
|
BLAKE2b-256 checksum How to use checksums |
3c69df22339cc00f36cb656de126da168580947f53a32030c3661461ab46f3af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Security for PDFknife 2026.8.14.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.