pypdf
SKILL.md
pypdf
Use scripts/pypdf_cli.py for deterministic PDF operations instead of ad-hoc pypdf snippets.
Workflow
- Confirm the PDF file path is accessible locally.
- Run the desired command (inspect, extract-text, extract-pages, merge, split, rotate).
- Inspect text output or the resulting PDF file.
Command Guide
- Inspect metadata and page count:
python scripts/pypdf_cli.py info --input <file.pdf>
- Extract all text:
python scripts/pypdf_cli.py extract-text --input <file.pdf>
- Extract text from specific pages (0-indexed):
python scripts/pypdf_cli.py extract-text --input <file.pdf> --pages 0 1 2
- Split PDF into individual pages: