Skip to main content

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 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.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfknife-2026.7.28.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

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

Hashes for pdfknife-2026.7.28.1.tar.gz
Algorithm Hash digest
SHA256 06eee652d78be4356527d250edb15155ff612de62adec99063c79e31ad3c53c1
MD5 577c8b822afa329dc6a709636dff201e
BLAKE2b-256 970938c759379caa5f273fa316754402c1c39a48a9985a8e6e916e0db1598438

See more details on using hashes here.

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

Hashes for pdfknife-2026.7.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 950dcb160ff405d23dce9400be0aa08a845af2020be84a56a044fe49f77d3cb5
MD5 825e8277bf09a02a9f17385a144b7d36
BLAKE2b-256 d20033ec3c0b73c351768ff5963de617fe50a8e5fc3f551a75a4e5de1f15e068

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page