---
name: "pdfcpu-go-pdf-processor"
description: "Process, optimize, crop, split, and validate PDF files at microsecond speed with Go."
metadata:
  author: "pdfcpu"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "batch split pdf pdfcpu"
  - "stamp watermark pdfcpu"
  - "validate pdf structure pdfcpu"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# pdfcpu Golang High-Performance Processor

Executes high-throughput batch PDF processing with pdfcpu: page extraction, stamp/watermark injection, booklet creation, image extraction, and grid assembly in backend servers.

## When to Invoke
Invoke this skill whenever you need to:
- batch split pdf pdfcpu
- stamp watermark pdfcpu
- validate pdf structure pdfcpu

## Execution SOP & Rules
1. Run pdfcpu validate input.pdf to check conformance with ISO 32000-1 specification.
2. Execute pdfcpu stamp add "CONFIDENTIAL" "scale:0.5 abs, rot:45, op:0.3" in.pdf out.pdf.
3. Use pdfcpu nup out.pdf 4 in.pdf to assemble 4-up booklet page layouts.
4. Embed pdfcpu Go API directly into backend microservices for zero-overhead in-memory operations.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
