PDF

pdfcpu – PDF processing library and CLI

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 commands

pdfcpu is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

PDF Development Libraries
PDFBoxCreate, render, print, split, merge, alter, verify and extract text and metadata
TCPDFPHP class for generating PDF documents
PyMuPDFFast Python toolkit for document extraction and editing
PopplerLibrary for rendering PDF files, and examining or modifying their structure
PDFKitPDF document generation library for Node and the browser
jsPDFJavaScript toolkit for creating documents in web applications
pdfcpuPDF processing library
Apache FOPPrint formatter driven by XSL formatting objects
WeasyPrintRendering engine that turns HTML and CSS into print-ready documents
pypdfPure Python toolkit for reading, splitting and merging documents
QPDFLibrary and programs that inspect and manipulate the structure of PDF files
PoDoFoParse PDF files and modify their contents into memory
OpenPDFLibrary for creating and editing PDF files; fork of iText
xhtml2pdfHTML to PDF converter using Python
DompdfPHP tool that converts HTML and CSS into formatted documents
libHaruLibrary for generating PDFs
pikepdfPython toolkit for inspecting and modifying document files
PdfPig.NET toolkit for extracting text, words and document content
gopdfGo toolkit for generating documents with text, images and graphics
CapyPDFFully color managed PDF generation library
pdf-libCreate and modify PDF documents in a JavaScript environment
PDFioPDF read/write library
fpdf2Python toolkit for creating richly formatted documents
PDFsharp.NET library for processing PDF files
JasperReportsReporting engine written in Java
CamlPDFOCaml library for reading, writing and modifying PDF files

Read our verdict in the software roundup.

PDF Manipulation Tools
Stirling PDFLocally hosted web based PDF manipulation tool
PDFsamExtract pages, split, merge, mix and rotate PDF files
pdfcpuPDF processing library
PDF Mix ToolPerform common editing operations on PDF files
PDF ArrangerMerge, rearrange, split, rotate, and crop PDFs
cpdfSet of command-line tools that let you modify PDF files
pdftkThe PDF toolkit
QPDFLibrary and programs that inspect and manipulate the structure of PDF files
pstoeditTranslates PostScript and PDF graphics into other vector formats
img2pdfLossless conversion of raster images to PDF
PDF ChainGraphical user interface for The PDF Toolkit
TabulaExtract data tables inside PDF files
PDFStitcherUtility for stitching together PDF pages
wkhtmltopdfRender HTML into PDF
kropSimple graphical tool to crop the pages of PDF files
Qpdf ToolsQt interface for Ghostscript and QPDF
Quick PDF JoinJoins multiple PDF files together
PDF TricksOffer small manipulations in PDF files
OnePDFPleaseTUI for working with PDF files
PdfJumblerRearrange, merge, delete, and rotate pages
PDF JugglerMix, reorder and select PDF pages
jpeg2pdfCommand-line tool which lets you convert images to PDF

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted