Skip to content

pdf-toolkit

Process PDF files using the bundled scripts.

Capabilities

  • Text extraction: read text content from any PDF page or page range → see extraction guide for multi-column layouts, page ranges, table extraction, and OCR limitations
  • Form filling: fill PDF form fields programmatically and flatten the result → see forms guide for listing fields, setting values, checkboxes, radio buttons, and flattening
  • Merging and splitting: combine multiple PDFs, reorder pages, add bookmarks, or split into individual pages → see merging guide for all merge and split operations

Quick reference

TaskCommand
Extract all textpython3 ${CLAUDE_SKILL_DIR}/scripts/extract.py <input.pdf>
Extract page rangepython3 ${CLAUDE_SKILL_DIR}/scripts/extract.py <input.pdf> --pages 2-5
Fill formpython3 ${CLAUDE_SKILL_DIR}/scripts/fill_form.py <input.pdf> <output.pdf> field=value ...
Merge PDFspython3 ${CLAUDE_SKILL_DIR}/scripts/merge.py <out.pdf> <in1.pdf> <in2.pdf> ...

Instructions

  1. Identify which operation the user needs: extraction, form filling, or merging/splitting.
  2. Read the relevant reference file for detailed instructions and edge case handling.
  3. Run the appropriate script from ${CLAUDE_SKILL_DIR}/scripts/.
  4. If a required library (pypdf, pdfplumber) is not installed, offer to install it with pip install <library> before retrying.
  5. Report the output file path or print the extracted text to the user.