π¦ ClawHub
PDF Read/Write Toolkit
by @droba07
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.
TERMINAL
clawhub install pdf-rw-toolkitπ About This Skill
name: pdf description: 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. metadata: openclaw: requires: bins: [python3] pip: [pdfplumber, pypdf, weasyprint]
PDF Skill
Read, extract, analyze, and generate PDF documents.
Capabilities
Scripts
All scripts are in scripts/ relative to this skill directory.
Read / Extract
# Extract all text
python3 scripts/pdf_read.py Extract text from specific pages (1-indexed)
python3 scripts/pdf_read.py --pages 1,3,5-10Extract tables as CSV
python3 scripts/pdf_read.py --tables --format csvExtract tables as JSON
python3 scripts/pdf_read.py --tables --format jsonGet PDF metadata and page count
python3 scripts/pdf_read.py --info
Merge / Split
# Merge multiple PDFs
python3 scripts/pdf_merge.py output.pdf input1.pdf input2.pdf input3.pdfSplit: 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.pdfGenerate PDF from HTML string
python3 scripts/pdf_generate.py --html "Hello
World
" output.pdfGenerate PDF from Markdown (converted to HTML first)
python3 scripts/pdf_generate.py input.md output.pdf
Usage Notes
--pages to limit extraction scope--css file for custom styles