PDF Read/Write Toolkit
/install pdf-rw-toolkit
PDF Skill
Read, extract, analyze, and generate PDF documents.
Capabilities
- Extract text from PDF (full or per-page)
- Extract tables from PDF as CSV/JSON
- Get metadata (title, author, pages, etc.)
- Merge multiple PDFs into one
- Split PDF by page ranges
- Generate PDF from HTML or Markdown
- Fill PDF forms
Scripts
All scripts are in scripts/ relative to this skill directory.
Read / Extract
# Extract all text
python3 scripts/pdf_read.py \x3Cfile.pdf>
# Extract text from specific pages (1-indexed)
python3 scripts/pdf_read.py \x3Cfile.pdf> --pages 1,3,5-10
# Extract tables as CSV
python3 scripts/pdf_read.py \x3Cfile.pdf> --tables --format csv
# Extract tables as JSON
python3 scripts/pdf_read.py \x3Cfile.pdf> --tables --format json
# Get PDF metadata and page count
python3 scripts/pdf_read.py \x3Cfile.pdf> --info
Merge / Split
# Merge multiple PDFs
python3 scripts/pdf_merge.py output.pdf input1.pdf input2.pdf input3.pdf
# Split: extract specific pages
python3 scripts/pdf_split.py input.pdf output.pdf --pages 1,3,5-10
Generate
# Generate PDF from HTML file
python3 scripts/pdf_generate.py input.html output.pdf
# Generate PDF from HTML string
python3 scripts/pdf_generate.py --html "\x3Ch1>Hello\x3C/h1>\x3Cp>World\x3C/p>" output.pdf
# Generate PDF from Markdown (converted to HTML first)
python3 scripts/pdf_generate.py input.md output.pdf
Usage Notes
- For large PDFs, use
--pagesto limit extraction scope - Table extraction works best with well-structured tables; complex layouts may need manual cleanup
- PDF generation via WeasyPrint supports CSS styling — pass a
--cssfile for custom styles - All paths can be absolute or relative to the workspace
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pdf-rw-toolkit - After installation, invoke the skill by name or use
/pdf-rw-toolkit - Provide required inputs per the skill's parameter spec and get structured output
What is PDF Read/Write Toolkit?
Read, extract, and generate PDF files. Use when user asks to read PDF content, extract text/tables, merge PDFs, fill forms, or generate PDFs from HTML/Markdown. It is an AI Agent Skill for Claude Code / OpenClaw, with 91 downloads so far.
How do I install PDF Read/Write Toolkit?
Run "/install pdf-rw-toolkit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PDF Read/Write Toolkit free?
Yes, PDF Read/Write Toolkit is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PDF Read/Write Toolkit support?
PDF Read/Write Toolkit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PDF Read/Write Toolkit?
It is built and maintained by Roman Matyuschenko (@droba07); the current version is v1.0.0.