1 bookmark for 2025-10-13

7360.

Spotlight on pdfly, the Swiss Army knife for PDF files

chezsoi.org/lucas/blog/spotlight-on-pdfly.html

pdfly is a CLI tool to manipulate PDF files, written in Python and based on the fpdf2 & pypdf libraries. It can:

- display PDF metadata using pdfly meta and pdfly pagemeta commands
- combine files into new PDF documents: it can extract specific pages & merge documents (pdfly cat); selectively remove pages (pdfly rm); convert images to PDF documents (pdfly x2pdf); and even compress documents (pdfly compress) or build booklets (pdfly 2-up & pdfly booklet).
- pull out specific content from PDF files: pdfly extract-images & pdfly extract-annotated-text.
- fix manually-edited PDF documents, so that they can be opened in a PDF viewer again!