pypdf

SKILL.md

pypdf

Use scripts/pypdf_cli.py for deterministic PDF operations instead of ad-hoc pypdf snippets.

Workflow

  1. Confirm the PDF file path is accessible locally.
  2. Run the desired command (inspect, extract-text, extract-pages, merge, split, rotate).
  3. 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:
Installs
12
First Seen
Mar 18, 2026