pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

CLI Installation

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


Download

macOS

Linux

Windows

Checksums


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

Install the CLI tool:

go install 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

docker build -t pdfcpu .
docker run -it -v "$(pwd)":/app pdfcpu validate a.pdf