# pdfcpu

> PDF tooling for Go and the command line

Source: https://talira.ai/catalog/pdfcpu-ctccs8g5
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), [documents / pdf / form filling](https://talira.ai/categories/documents/pdf/form-filling), [languages / go](https://talira.ai/categories/languages/go)
- Platforms: macos, linux, windows, cli[^2]
- Licence: Apache-2.0[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^2]
- Creator: Horst Rutter

pdfcpu is a PDF processing library and command-line tool written in Go, with minimal external dependencies. It validates, optimizes, splits, trims, merges, encrypts and decrypts PDFs, adds stamps and watermarks, extracts images, fonts and metadata, manages attachments, bookmarks and portfolios, fills and exports forms from JSON or CSV, and creates PDFs from JSON. It supports PDF versions through PDF 2.0 and can validate digital signatures. Its maintainer, Horst Rutter, is a member of the PDF Association.

## Links

- Website: https://pdfcpu.io
- GitHub: https://github.com/pdfcpu/pdfcpu
- Docs: https://pdfcpu.io/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/pdfcpu>[^1]

## Problems it solves

- merge, split and reorder PDF pages from a shell script without installing Java or Python
- check whether a PDF is valid before I accept it in my upload pipeline
- shrink bloated PDFs by optimizing them in a batch job
- add a watermark or stamp text and images onto every page of a PDF
- password-protect a PDF and set its permissions from the command line
- fill hundreds of PDF forms from a CSV or JSON file
- export the values of a filled PDF form to JSON
- process PDFs in my Go program with a pure Go library and no cgo
- lay out several pages per sheet or make a booklet for printing
- check whether the digital signatures in a PDF are intact
- extract images, fonts and metadata from a PDF in a script
- create a PDF with tables and images from a JSON description

## Features

- validate, optimize, split, trim and merge PDFs
- extract and manipulate images, fonts and metadata
- encrypt and decrypt, change passwords, set permissions
- resize, rotate, crop, zoom and n-up pages
- add and remove stamps and watermarks
- validate signature integrity, report signature evidence and remove signatures
- attachments, portfolios, bookmarks, annotations, keywords and properties
- form commands: list, lock, unlock, reset, export to JSON, fill from JSON and multifill from JSON or CSV
- create PDFs from JSON
- booklets, posters, grids, cut and ndown
- PDF versions through PDF 2.0 (ISO 32000-2)
- Go API

## Limitations

- No official Docker image yet: one is planned for v0.17.0[^2]

## Capabilities

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

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.79, momentum 0.57, community 0.69, backing 0.20, extensibility 0.20.

- last commit 21 days ago
- 188 commits in the last 90 days
- latest release v0.16.4 27 days ago
- 8.9k GitHub stars
- 53 contributors
- accepts sponsorship (Github, Open Collective)
- created by Horst Rutter

## Alternatives

- [qpdf](https://talira.ai/catalog/qpdf-m21640ex.md): A content-preserving PDF document transformer
- [Stirling-PDF](https://talira.ai/catalog/stirling-pdf-3w4rw5w9.md): Your PDFs. Your servers.
- [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
- [MuPDF](https://talira.ai/catalog/mupdf-a0hpyn67.md): The ultimate library for managing PDF documents
- [pdf-lib](https://talira.ai/catalog/pdf-lib-80dtat8x.md): Create and modify PDF documents in any JavaScript environment.
- [lopdf](https://talira.ai/catalog/lopdf-8dj842a3.md): A Rust library for PDF document manipulation.

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://pdfcpu.io/getting_started/install_cli/ (checked 19 Nov 2026)
[^3]: https://github.com/pdfcpu/pdfcpu/blob/master/LICENSE.txt (checked 19 Nov 2026)
