Installation
SKILL.md
PDF Processing Guide
Tool-First Workflow
Use the Pdf tool for ALL standard operations. Do NOT use Python/pypdf unless you need features the tool doesn't have.
Available Pdf tool actions
| Task | Tool call |
|---|---|
| Inspect PDF metadata | Pdf { action: "inspect", file_path: "doc.pdf" } |
| Extract all text | Pdf { action: "extract_text", file_path: "doc.pdf" } |
| Extract text per page | Pdf { action: "extract_pages_text", file_path: "doc.pdf" } |
| Split pages | Pdf { action: "split", file_path: "doc.pdf", pages: "1-3", output_path: "out.pdf" } |
| Merge PDFs | Pdf { action: "merge", file_paths: ["a.pdf", "b.pdf"], output_path: "merged.pdf" } |
| Get form fields | Pdf { action: "get_form_fields", file_path: "form.pdf" } |
| Fill fillable form | Pdf { action: "fill_form", file_path: "form.pdf", field_values: {"name": "John"}, output_path: "filled.pdf" } |
| Create blank PDF | Pdf { action: "create", output_path: "blank.pdf", pages: 2 } |
| Add text to non-fillable PDF | Pdf { action: "add_text", file_path: "doc.pdf", texts: [{"page": 1, "x": 100, "y": 500, "text": "Hello", "size": 12}], output_path: "out.pdf" } |