AGENT SKILL

pdf

Work with PDF files using the installed tools for fixed-page authoring, extraction, page operations, forms, annotations, redactions, and mechanical checks.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 237
Forks
24

01 前言 Front Matter

name
pdf
description
Work with PDF files using the installed tools for fixed-page authoring, extraction, page operations, forms, annotations, redactions, and mechanical checks.

02 资源文件 4

03 SKILL.md 正文

PDF documents

A PDF is a fixed-page package rather than a flow document. Existing PDFs generally expose pages, regions, form fields, annotations, overlays, and redactions rather than semantic paragraph reflow. A retained source such as DOCX, PPTX, a build script, or structured data may contain the editable layout model for an authored PDF.

Capabilities

  • ReportLab authors PDFs from structured data and explicit page geometry.
  • pypdf handles page operations, metadata, forms, and encryption.
  • pdf2image uses Poppler to render pages; Pillow handles the resulting images.
  • pdfplumber and pypdf extract text and tables.
  • Scanned pages without a usable text layer require additional OCR tooling.

A visible rectangle does not remove underlying PDF content. Redaction changes the protected page content; overlays and annotations do not.

References and helpers

The scripts/ directory contains mechanical checks for openability, page boxes, text layers, extracted content, and selected geometry. The verifier's --strict-layout mode is designed for known generated layouts with predictable geometry, not arbitrary PDFs, scans, assembled pages, forms, redactions, logos, watermarks, or background artwork.

04 同仓库更多 Skills