Skills stirling-pdf
PDF manipulation via Stirling-PDF API. Merge, split, convert, OCR, compress, sign, redact, and more. Self-hosted.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/angusthefuzz/stirling-pdf" ~/.claude/skills/openclaw-skills-stirling-pdf && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/angusthefuzz/stirling-pdf" ~/.openclaw/skills/openclaw-skills-stirling-pdf && rm -rf "$T"
manifest:
skills/angusthefuzz/stirling-pdf/SKILL.mdsource content
Stirling-PDF Skill
Self-hosted PDF manipulation platform with 60+ tools via REST API.
Configuration
Set these environment variables:
— Your Stirling-PDF instance URL (default:STIRLING_PDF_URL
)http://localhost:8080
— API key if authentication is enabledSTIRLING_API_KEY
Docs
- Official docs: https://docs.stirlingpdf.com
- Swagger UI:
on your deployment<your-instance>/swagger-ui/index.html
Quick Commands
# Use the wrapper script node ~/.openclaw/skills/stirling-pdf/scripts/pdf.js <operation> [options] # Examples: node pdf.js merge file1.pdf file2.pdf -o merged.pdf node pdf.js split input.pdf -o ./output-dir node pdf.js compress input.pdf -o compressed.pdf node pdf.js ocr input.pdf -o searchable.pdf node pdf.js convert-to-pdf document.docx -o output.pdf node pdf.js pdf-to-word input.pdf -o output.docx node pdf.js add-watermark input.pdf "DRAFT" -o watermarked.pdf
Available Operations
Page Operations
- Combine multiple PDFsmerge
- Split PDF into partssplit
- Rotate pagesrotate
- Extract specific pagesextract-pages
- Reorganize pagesreorder
Conversion
- Word, Excel, Images, HTML → PDFconvert-to-pdf
- PDF → Wordpdf-to-word
- PDF → Imagespdf-to-image
- Extract textpdf-to-text
Content
- Reduce file sizecompress
- Make scanned PDFs searchableocr
- Add text/image watermarkadd-watermark
- Add stampadd-stamp
- Remove sensitive contentredact
- Add signaturesign
Security
- Password protectadd-password
- Remove passwordremove-password
- Remove metadata/scriptssanitize
Direct API Usage
For operations not covered by the script, call the API directly:
curl -X POST "$STIRLING_PDF_URL/api/v1/general/merge-pdfs" \ -H "X-API-KEY: $STIRLING_API_KEY" \ -H "Content-Type: multipart/form-data" \ -F "fileInput=@file1.pdf" \ -F "fileInput=@file2.pdf" \ -o merged.pdf
Check Swagger UI at
<your-instance>/swagger-ui/index.html for all endpoints.
Common Endpoints
| Operation | Endpoint |
|---|---|
| Merge | |
| Split | |
| Compress | |
| OCR | |
| PDF to Image | |
| Image to PDF | |
| Add Watermark | |
| Add Password | |
Notes
- Most endpoints use POST with multipart/form-data
- File input parameter is usually
fileInput - Response is the processed PDF file
- Check Swagger UI for exact parameters per operation