byADIT Free software for engineers and students
EngiFree
qpdf — The Complete Guide: Repair, Decrypt and Merge PDFs Without Touching the Content

qpdf — The Complete Guide: Repair, Decrypt and Merge PDFs Without Touching the Content

qpdf is a command-line tool and library that makes structural changes to PDF files without touching what you see on screen. When another program fails to open a file, when you need to remove a password from a document you were given the password for, or when hundreds of reports must be merged in a script — qpdf is the right helper. It is open source under the Apache 2.0 licence and free for any use.

What you get

Usage examples

Check a file: qpdf --check report.pdf. Merge: qpdf --empty --pages a.pdf b.pdf -- merged.pdf. Remove the password from a file you are allowed to open: qpdf --decrypt --password=SECRET in.pdf out.pdf. There is no GUI, and the tool does not convert formats, compress images or run OCR.

Related tools

For stamps and form filling on the command line — PDFtk. For compression and rendering to images — Ghostscript. For adding a text layer to scans — OCRmyPDF.

The bottom line

qpdf is the quiet tool that rescues problem files and makes automation easy. Completely free, commercial work included.

Further reading

מדריכי AI למהנדסים ולמשרד, ב-5 שפות: adit-ai.com ←