qmetrics.net

pdfcpu

Go PDF processing library and command-line tool

pdfcpu screenshot

pdfcpu validates, merges, splits, encrypts, and transforms PDFs through a Go API and a command-line interface with broad PDF operations.

Overview

pdfcpu is a Go-based PDF processor aimed at validation, optimization, assembly, content extraction, encryption, signing, and related tasks on individual files or in batch jobs. It supports PDF versions through PDF 2.0 with ongoing improvements to ISO 32000-2 validation.

The command-line tool exposes dozens of subcommands for annotations, attachments, bookmarks, forms, images, fonts, metadata, signatures, watermarks, N-up layouts, portfolios, permissions, and more. Typical workflows include validating a file, merging documents, or running optimize and extract operations without external PDF viewers.

Go programs import the library directly for server-side automation and embedded PDF control. Local image paths used in create and form workflows are restricted to configured roots for safety; the CLI defaults to the working directory with optional config.yml overrides.

The project emphasizes comprehensive PDF functionality, minimal external dependencies, and predictable behavior. Documentation covers CLI help, API examples, changelog, and security reporting. Compatibility triage often references whether Adobe Acrobat Reader or macOS Preview can open problematic files.

Key features

  • Validate and optimize PDFs
  • Merge, split, and trim
  • Encrypt, decrypt, and sign
  • Extract images, fonts, metadata
  • Stamps, watermarks, and forms
  • Large CLI command surface
  • Go API for automation
  • Local image path controls

Use cases

  • Automated PDF batch pipelines
  • Go service PDF manipulation
  • CLI document assembly
  • PDF validation in CI

Tags

Similar software

Stirling PDF

Self-hostable open-source PDF editing platform

An open-source PDF platform for editing, signing, converting, and automating documents in the browser, on desktop, or on your own servers with a private API.

★ 97.6k⟳ todayMIT · open core
Open Source Alternative to:Adobe AcrobatFoxit PDF Editor

MinerU

Document parser for Markdown and structured agent output

MinerU converts PDFs, images, and office documents into Markdown and structured JSON for apps, agents, and local workflows.

★ 84.4k⟳ 10 days agoApache-2.0

Paperless-ngx

Community-supported document management system for archiving scanned documents

Paperless-ngx turns physical documents into a searchable online archive. It is deployed with Docker Compose and is the official successor to Paperless and Paperless-ng.

★ 48.7k⟳ yesterdayGPL-3.0

Marker

Document to markdown and JSON conversion toolkit

Marker converts PDFs, images, and Office files into markdown, JSON, chunks, or HTML with layout, tables, math, and optional LLM-assisted cleanup. It runs on GPU, CPU, or Apple MPS via CLI modes.

★ 41.1k⟳ 8 days agoApache-2.0

OCRmyPDF

Command-line OCR text layer for scanned PDFs

OCRmyPDF adds a searchable text layer under scanned PDF images using Tesseract, keeping layout friendly for copy and paste while optimizing file size.

★ 35.4k⟳ yesterdayMPL-2.0

jsPDF

Client-side JavaScript library for generating PDF documents

jsPDF builds PDF files in the browser or in Node.js without a server round trip. It supports pages, fonts, UTF-8 via custom fonts, and optional HTML rendering.

★ 31.3k⟳ 2 months agoMIT