macOS
brew install qpdflocal Homebrew formula metadata
sudo port install qpdfMacPorts ports tree · textproc/qpdf/Portfile · source: api.github.com
brew / rank 546
Tools for and transforming and inspecting PDF files. Version 12.4.1 via Homebrew; verified 2026-09-10. Also installable with debian: sudo apt install libqpdf-dev.
install
brew install qpdflocal Homebrew formula metadata
sudo port install qpdfMacPorts ports tree · textproc/qpdf/Portfile · source: api.github.com
sudo apk add qpdfAlpine Linux edge package indexes · qpdf · source: dl-cdn.alpinelinux.org
sudo apt install qpdfDebian stable package indexes · qpdf · source: deb.debian.org
sudo dnf install qpdfFedora Rawhide package metadata · qpdf · source: dl.fedoraproject.org
nix profile install nixpkgs#qpdfnixpkgs package indexes · pkgs/by-name/qp/qpdf/package.nix · source: api.github.com
sudo pacman -S qpdfArch Linux sync databases · qpdf · source: geo.mirror.pkgbuild.com
sudo zypper install qpdfopenSUSE Tumbleweed package metadata · qpdf · source: download.opensuse.org
choco install qpdfChocolatey community package catalog · qpdf · source: community.chocolatey.org
scoop install main/qpdfScoop official bucket manifest trees · bucket/qpdf.json · source: api.github.com
winget install --id QPDF.QPDF -eWindows Package Manager source index · QPDF.QPDF · source: cdn.winget.microsoft.com
overview
Tools for and transforming and inspecting PDF files
history
qpdf is a cross-platform command-line program and C++ library for structural, content-preserving PDF transformations. It is designed for inspecting PDF internals and for operations such as splitting, merging, encryption, linearization, repair, and low-level object manipulation rather than viewing or rendering document content.
qpdf's first public release was version 2.0 in April 2008. Early development concentrated on portability and recovery from malformed PDFs; version 2.1 added Windows support, a DLL, a partial C interface, AES encryption, and crypt filters in October 2009.
The project subsequently expanded its command-line and library interfaces while retaining its focus on structural transformations. Version 7 changed the primary license to Apache-2.0 and improved damaged-file recovery, while version 8 introduced an AppImage and higher-level helper APIs. Later development added JSON-based inspection and modification, job-based interfaces, broader cryptographic-provider support, and a CMake build system.
qpdf has matured into both a command-line utility and a reusable C++ library with C bindings. The supplied package metadata records packages across Homebrew, Debian and Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, Chocolatey, Scoop, winget, and openSUSE ecosystems, indicating unusually broad cross-platform packaging.
Windows support and a partial C API arrived in 2009. Later releases added AppImage distribution, continuous cross-platform release builds, shell-completion guidance for packagers, and installed pkg-config and CMake package metadata for downstream developers.
Typical command-line uses include checking or repairing PDFs, merging and splitting pages, decrypting or password-protecting documents, web-optimizing through linearization, and inspecting or changing low-level PDF objects. Developers can link against libqpdf through installed pkg-config or CMake metadata.
QDF mode produces a valid but editor-friendly PDF representation that can be repaired after editing with fix-qdf. qpdf JSON provides a language-neutral representation that can be manipulated with scripts or command-line JSON tools.
qpdf occupies a distinctive niche between a PDF viewer and a content-creation toolkit: it exposes PDF structure while preserving page content. Package maintainers and automation authors value its small dependency footprint, stable command-line interface, library API, repair behavior, encryption support, and ability to split, merge, linearize, inspect, and transform PDFs without rendering them.
Its QDF and JSON representations are especially useful to Unix-tool enthusiasts because they make otherwise opaque PDF internals accessible to text editors, scripts, and tools such as jq. The companion fix-qdf and zlib-flate executables extend that low-level toolbox.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
fix-qdf | cli | global executable | |
qpdf | cli | global executable | |
zlib-flate | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:qpdf |
|---|---|
| Version | 12.4.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/qpdf |
| Homepage | https://qpdf.sourceforge.io/ |
| Repository | https://github.com/qpdf/qpdf |
| Upstream docs | https://qpdf.sourceforge.io/ |
| License | Apache-2.0 |
| Source archive | https://github.com/qpdf/qpdf/releases/download/v12.4.1/qpdf-12.4.1.tar.gz |
| Last updated | 2026-09-10T09:19:20Z |
| Pulse | updated |
| Dependencies | jpeg-turbo, openssl@3 |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | qpdf |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libqpdf-dev 12.2.0-1
development files for PDF transformation/inspection library
sudo apt install libqpdf-devlibqpdf30 12.2.0-1
runtime library for PDF transformation/inspection software
sudo apt install libqpdf30qpdf 12.2.0-1
tools for transforming and inspecting PDF files
sudo apt install qpdfqpdf-doc 12.2.0-1
tools for transforming and inspecting PDF files
sudo apt install qpdf-docqpdf
nix profile install nixpkgs#qpdflibqpdf-dev 11.9.0-1.1build1
development files for PDF transformation/inspection library
sudo apt install libqpdf-devlibqpdf29t64 11.9.0-1.1build1
runtime library for PDF transformation/inspection software
sudo apt install libqpdf29t64qpdf 11.9.0-1.1build1
tools for transforming and inspecting PDF files
sudo apt install qpdfqpdf-doc 11.9.0-1.1build1
tools for transforming and inspecting PDF files
sudo apt install qpdf-docqpdf 12.4.0-r0
Command-line tools and library for transforming PDF files
sudo apk add qpdfqpdf-dev 12.4.0-r0
Command-line tools and library for transforming PDF files (development files)
sudo apk add qpdf-devqpdf-doc 12.4.0-r0
Command-line tools and library for transforming PDF files (documentation)
sudo apk add qpdf-docqpdf-fix-qdf 12.4.0-r0
Repair PDF files in QDF form after editing
sudo apk add qpdf-fix-qdfqpdf-libs 12.4.0-r0
Command-line tools and library for transforming PDF files (libraries)
sudo apk add qpdf-libsqpdf 12.4.0-1.fc45
Command-line tools and library for transforming PDF files
sudo dnf install qpdfqpdf-devel 12.4.0-1.fc45
Development files for QPDF library
sudo dnf install qpdf-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.