pdf-toolkit
Installation
SKILL.md
PDF Toolkit
Use this skill for PDFs that already exist. For CAJ-to-PDF conversion, use the separate caj-pdf skill first.
Route requests
- Compress or reduce file size:
scripts/pdf_compress.sh - Convert pages to PNG/JPG previews or long-image inputs:
scripts/pdf_render.sh - Extract text or make a
.txt:scripts/pdf_text.sh - Extract embedded images:
scripts/pdf_images.sh - OCR a scanned PDF:
scripts/pdf_ocr.sh - Merge, split, extract, or delete pages:
scripts/pdf_pages.sh
General rules
- Confirm input files exist before running scripts.
- Prefer default outputs beside the input file unless the user gives an output path.
- Do not overwrite existing outputs unless the user explicitly asks; scripts create timestamped outputs by default.
- Validate resulting PDFs with
pdfinfowhen available. - Report the final output path and the key validation result: page count, file size, or generated file count.