Skip to main content

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 paper
  • pdfknife-clean -- Recompress and clean a PDF with Ghostscript
  • pdfknife-cut -- Cut margin marks and toolbox artefacts off a PDF
  • pdfknife-even -- Extract only even pages from a PDF
  • pdfknife-extract -- Extract embedded images and fonts from a PDF
  • pdfknife-margin -- Add a white margin around PDF pages
  • pdfknife-merge -- Merge several PDF files into one
  • pdfknife-recto -- Arrange two A5 recto pages side by side on A4 (top-to-bottom)
  • pdfknife-reverse -- Reverse page order of a PDF
  • pdfknife-rotate -- Rotate all pages of a PDF by a given angle
  • pdfknife-shrink -- Compress/reduce file size of PDFs with Ghostscript
  • pdfknife-split -- Split a multi-page PDF into separate single-page PDFs
  • pdfknife-tearpages -- Remove the first and/or last page of a PDF
  • pdfknife-trim -- Trim (crop) edges of PDF pages

License

BSD3, See LICENSE file.

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)

Source distribution for PDFknife 2026.8.14.0
File Size Uploaded
pdfknife-2026.8.14.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PDFknife 2026.8.14.0
File Interpreter ABI Platform
pdfknife-2026.8.14.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2026.8.14.0 This release

2 release files

0.2.5

1 release file

0.2.4

2 release files

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page