π¦ ClawHub
pypdf
by @maverick-ai-tech
Extract text, metadata, and pages from PDF files using pypdf. Use for tasks such as reading PDF content, extracting specific pages, splitting or merging PDFs...
TERMINAL
clawhub install pypdfπ About This Skill
name: pypdf description: Extract text, metadata, and pages from PDF files using pypdf. Use for tasks such as reading PDF content, extracting specific pages, splitting or merging PDFs, reading document metadata, and rotating or transforming pages. metadata: openclaw: requires: bins: - python3
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
python scripts/pypdf_cli.py info --input
python scripts/pypdf_cli.py extract-text --input
python scripts/pypdf_cli.py extract-text --input --pages 0 1 2
python scripts/pypdf_cli.py split --input --output-dir
python scripts/pypdf_cli.py extract-pages --input --pages 0 1 2 --output
python scripts/pypdf_cli.py merge --inputs --output
python scripts/pypdf_cli.py rotate --input --angle 90 --output
- --angle must be 90, 180, or 270.
- Optionally restrict to specific pages with --pages 0 2.Operational Rules
extract-text, output goes to stdout; redirect to a file when needed.--output for commands that write a new PDF.pip install pypdf.