pdfcpu is a library and command-line application for processing PDF documents. It provides tools for examining, validating, modifying and creating PDF files, with an API that allows its functionality to be incorporated into other applications. The project implements PDF processing independently of external PDF rendering engines and is designed for use in automated document workflows.
pdfcpu works with the internal structure of PDF documents, including objects, pages, annotations, forms, fonts and metadata. Its parser can recognise many malformed documents and repair certain structural problems while processing them. Developers can use the library to implement document management functionality, while administrators can run equivalent operations through the command-line interface. Its capabilities extend from routine page assembly and encryption to document validation, optimisation and the creation of PDF content from structured input.
This is free and open source software.
Key Features
- PDF validation – checks document structure against supported PDF specifications.
- PDF optimisation – reduces redundant objects and improves internal document structure.
- Document assembly – merges, splits and extracts PDF pages.
- Page manipulation – inserts, removes, trims, crops and rotates pages.
- Encryption – encrypts and decrypts documents using supported PDF security mechanisms.
- Permissions – configures document access and usage permissions.
- Digital signatures – provides supported document signing operations.
- Form processing – lists, creates, fills, resets and manages interactive PDF forms.
- Form data – imports and exports supported form data using JSON and CSV.
- Annotations – inspects and manipulates supported PDF annotations.
- Content extraction – extracts images, fonts, pages and other document resources.
- Image conversion – creates PDFs from images and extracts images from documents.
- Watermarks – adds and removes text or image watermarks and stamps.
- Document metadata – reads and updates PDF properties and metadata.
- Bookmarks – creates and manages document bookmarks and outlines.
- Document creation – creates PDF content using structured JSON input.
- PDF inspection – displays information about pages, fonts, images and document objects.
- Library API – exposes PDF processing operations for application integration.
- Command-line interface – provides commands for individual operations and automated workflows.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/pdfcpu/pdfcpu
Support:
Developer: pdfcpu contributors
License: Apache License 2.0

pdfcpu is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| PDF Development Libraries | |
|---|---|
| PDFBox | Create, render, print, split, merge, alter, verify and extract text and metadata |
| TCPDF | PHP class for generating PDF documents |
| PyMuPDF | Fast Python toolkit for document extraction and editing |
| Poppler | Library for rendering PDF files, and examining or modifying their structure |
| PDFKit | PDF document generation library for Node and the browser |
| jsPDF | JavaScript toolkit for creating documents in web applications |
| pdfcpu | PDF processing library |
| Apache FOP | Print formatter driven by XSL formatting objects |
| WeasyPrint | Rendering engine that turns HTML and CSS into print-ready documents |
| pypdf | Pure Python toolkit for reading, splitting and merging documents |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| PoDoFo | Parse PDF files and modify their contents into memory |
| OpenPDF | Library for creating and editing PDF files; fork of iText |
| xhtml2pdf | HTML to PDF converter using Python |
| Dompdf | PHP tool that converts HTML and CSS into formatted documents |
| libHaru | Library for generating PDFs |
| pikepdf | Python toolkit for inspecting and modifying document files |
| PdfPig | .NET toolkit for extracting text, words and document content |
| gopdf | Go toolkit for generating documents with text, images and graphics |
| CapyPDF | Fully color managed PDF generation library |
| pdf-lib | Create and modify PDF documents in a JavaScript environment |
| PDFio | PDF read/write library |
| fpdf2 | Python toolkit for creating richly formatted documents |
| PDFsharp | .NET library for processing PDF files |
| JasperReports | Reporting engine written in Java |
| CamlPDF | OCaml library for reading, writing and modifying PDF files |
Read our verdict in the software roundup.
| PDF Manipulation Tools | |
|---|---|
| Stirling PDF | Locally hosted web based PDF manipulation tool |
| PDFsam | Extract pages, split, merge, mix and rotate PDF files |
| pdfcpu | PDF processing library |
| PDF Mix Tool | Perform common editing operations on PDF files |
| PDF Arranger | Merge, rearrange, split, rotate, and crop PDFs |
| cpdf | Set of command-line tools that let you modify PDF files |
| pdftk | The PDF toolkit |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| pstoedit | Translates PostScript and PDF graphics into other vector formats |
| img2pdf | Lossless conversion of raster images to PDF |
| PDF Chain | Graphical user interface for The PDF Toolkit |
| Tabula | Extract data tables inside PDF files |
| PDFStitcher | Utility for stitching together PDF pages |
| wkhtmltopdf | Render HTML into PDF |
| krop | Simple graphical tool to crop the pages of PDF files |
| Qpdf Tools | Qt interface for Ghostscript and QPDF |
| Quick PDF Join | Joins multiple PDF files together |
| PDF Tricks | Offer small manipulations in PDF files |
| OnePDFPlease | TUI for working with PDF files |
| PdfJumbler | Rearrange, merge, delete, and rotate pages |
| PDF Juggler | Mix, reorder and select PDF pages |
| jpeg2pdf | Command-line tool which lets you convert images to PDF |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.