Command line tools to manipulate PDF files
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdfknife-2026.7.28.1.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdfknife-2026.7.28.1.tar.gz.
File metadata
- Download URL: pdfknife-2026.7.28.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06eee652d78be4356527d250edb15155ff612de62adec99063c79e31ad3c53c1
|
|
| MD5 |
577c8b822afa329dc6a709636dff201e
|
|
| BLAKE2b-256 |
970938c759379caa5f273fa316754402c1c39a48a9985a8e6e916e0db1598438
|
File details
Details for the file pdfknife-2026.7.28.1-py3-none-any.whl.
File metadata
- Download URL: pdfknife-2026.7.28.1-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
950dcb160ff405d23dce9400be0aa08a845af2020be84a56a044fe49f77d3cb5
|
|
| MD5 |
825e8277bf09a02a9f17385a144b7d36
|
|
| BLAKE2b-256 |
d20033ec3c0b73c351768ff5963de617fe50a8e5fc3f551a75a4e5de1f15e068
|