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
- description
- Work with PDF files using the installed tools for fixed-page authoring, extraction, page operations, forms, annotations, redactions, and mechanical checks.
02 资源文件 4
- 参考文档references/content-qa.md280 B
- 参考文档references/deterministic-pdf-quality.md969 B
- 脚本scripts/content_qa.py2.1 KB
- 脚本scripts/verify_pdf.py33.6 KB
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
- Deterministic PDF quality describes the mechanical verifier and the limits of extracted-geometry heuristics.
- Content QA describes final-PDF text extraction.
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
xlsx
Work with Excel `.xlsx` and `.xlsm` files using the installed `paper-xlsx` distribution, which imports as `openpyxl` and extends it with preservation-aware saves, guarded structural edits, recalculation helpers, diffs, and richer inspection.
pptx
Work with Microsoft PowerPoint `.pptx` files using the installed `paper-pptx` distribution, which imports as `pptx` and extends `python-pptx` with inspection, guarded edits, composition, diffs, and package-preserving saves.
docx
Work with Microsoft Word `.docx` files using the installed `paper-docx` distribution, which imports as `docx` and extends `python-docx` with inspection, guarded edits, review structures, composition, diffs, and byte-preserving saves.
generate-greeting
Generate a greeting message and write it to a file.