# qpdf

> A content-preserving PDF document transformer

Source: https://talira.ai/catalog/qpdf-m21640ex
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [documents / pdf / manipulation](https://talira.ai/categories/documents/pdf/manipulation), [developer tools / cli](https://talira.ai/categories/developer-tools/cli)
- Platforms: cli, linux, macos, windows
- Licence: Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Jay Berkenbilt (with Manfred Holger as co-maintainer)

qpdf is a command-line tool and C++ library for structural, content-preserving transformations on PDF files. It linearizes ('fast web view'), encrypts and decrypts, splits and merges pages, rewrites object and cross-reference streams, and can show a PDF's internal structure (including as JSON or in its editable QDF mode) for inspection. It does not render PDFs or extract text; it is a low-level tool for the structure of PDF files. It is Apache-2.0 licensed.

## Links

- Website: https://qpdf.sourceforge.io/
- GitHub: https://github.com/qpdf/qpdf
- Docs: https://qpdf.readthedocs.io/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/qpdf>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/qpdf>[^2]

## Problems it solves

- make a big PDF start showing in the browser before the whole file downloads
- the PDF opens in Chrome but our parser says the xref table is broken
- strip the owner password and print restrictions from a PDF I'm allowed to edit
- encrypt a generated PDF with AES-256 and a user password from a script
- I need to see what objects, streams and dictionaries are actually inside this PDF
- uncompress a PDF's content streams so I can read and hand-edit them in a text editor
- dump the internal structure of a PDF as JSON to debug why it renders wrong
- take pages 1-3 from one file and 10-12 from another without re-rendering anything
- rewrite a PDF with object streams to make it smaller without touching the images
- check whether a PDF is structurally valid before we accept the upload
- a C++ library to copy pages between PDFs while keeping everything byte-for-byte intact

## Features

- linearization (web-optimized PDFs)
- encryption and decryption
- splitting and merging pages, copying objects between PDFs
- object streams and cross-reference stream rewriting
- inspection of PDF structure for study or analysis
- C++ library for creating PDFs when you supply the content
- signed releases (cosign / GPG)

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.73, adoption 0.75, momentum 0.46, community 0.71, backing 0.20, extensibility 0.20.

- last commit 58 days ago
- 42 commits in the last 90 days
- latest release v12.4.2 58 days ago
- 5.6k GitHub stars
- 57 contributors
- created by Jay Berkenbilt (with Manfred Holger as co-maintainer)

## Alternatives

- [pdftk (PDFtk Server and pdftk-java)](https://talira.ai/catalog/pdftk-pdftk-server-and-pdftk-java-gzz4se9m.md): A command-line tool for working with PDFs
- [PyMuPDF](https://talira.ai/catalog/pymupdf-xw9pb5xf.md): A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
- [Apache PDFBox](https://talira.ai/catalog/apache-pdfbox-79k8kxaj.md): The Apache PDFBox library is an open source Java tool for working with PDF documents.
- [Ghostscript](https://talira.ai/catalog/ghostscript-j6fzqd7w.md): An interpreter for the PostScript language and PDF files
- [lopdf](https://talira.ai/catalog/lopdf-8dj842a3.md): A Rust library for PDF document manipulation.
- [MuPDF](https://talira.ai/catalog/mupdf-a0hpyn67.md): The ultimate library for managing PDF documents

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
