pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions
Contributing
Security

CLI Installation

Download a prebuilt binary for your platform and run pdfcpu version to verify installation.


Download

These downloads are for v0.16.0. See GitHub Releases for other versions.

macOS

Linux

Windows

Checksums


Software Bill of Materials (SBOMs)

Each download archive has a corresponding .sbom.json asset on the release page .
These JSON files describe application dependencies and are included in checksums.txt.

The WebAssembly (js/wasm) SBOM is generated from the tagged source with the WASM build settings. Its dependency inventory is source-derived rather than extracted from the binary.
It includes SHA-256 hashes identifying the WASM binary and its archive.


Install

  1. Extract the archive.

  2. Run:

    pdfcpu version

  3. Optional: move the binary to a directory in your PATH:

    sudo mv pdfcpu /usr/local/bin/


Using Go

To install the latest stable release:

go install github.com/pdfcpu/pdfcpu/cmd/pdfcpu@latest
pdfcpu version

To build with the embedded EU Trusted List certificate bundles:

go install -tags pdfcpu_eutl github.com/pdfcpu/pdfcpu/cmd/pdfcpu@latest
pdfcpu version

Package Managers

Homebrew (macOS)

brew install pdfcpu
pdfcpu version

MacPorts

sudo port install pdfcpu
pdfcpu version

DNF/YUM (Fedora)

sudo dnf install golang-github-pdfcpu
pdfcpu version

Docker

An official pdfcpu container image is planned for v0.17.0.