stirling-pdf
PDF manipulation via Stirling-PDF API. Merge, split, convert, OCR, compress, sign, redact, and more. Self-hosted.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- stirling-pdf
- metadata
- { "openclaw": { "env": { "STIRLING_API_KEY": "", "STIRLING_PDF_URL": "http://localhost:8080" }, "emoji": "📄", "requires": { "bins": [ "node", "curl" ] } } }
- description
- PDF manipulation via Stirling-PDF API. Merge, split, convert, OCR, compress, sign, redact, and more. Self-hosted.
03 SKILL.md 正文
Stirling-PDF Skill
Self-hosted PDF manipulation platform with 60+ tools via REST API.
Configuration
Set these environment variables:
STIRLING_PDF_URL— Your Stirling-PDF instance URL (default:http://localhost:8080)STIRLING_API_KEY— API key if authentication is enabled
Docs
- Official docs: https://docs.stirlingpdf.com
- Swagger UI:
<your-instance>/swagger-ui/index.htmlon your deployment
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
merge- Combine multiple PDFssplit- Split PDF into partsrotate- Rotate pagesextract-pages- Extract specific pagesreorder- Reorganize pages
Conversion
convert-to-pdf- Word, Excel, Images, HTML → PDFpdf-to-word- PDF → Wordpdf-to-image- PDF → Imagespdf-to-text- Extract text
Content
compress- Reduce file sizeocr- Make scanned PDFs searchableadd-watermark- Add text/image watermarkadd-stamp- Add stampredact- Remove sensitive contentsign- Add signature
Security
add-password- Password protectremove-password- Remove passwordsanitize- Remove metadata/scripts
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 | /api/v1/general/merge-pdfs |
| Split | /api/v1/general/split-pages |
| Compress | /api/v1/misc/compress-pdf |
| OCR | /api/v1/misc/ocr-pdf |
| PDF to Image | /api/v1/convert/pdf/img |
| Image to PDF | /api/v1/convert/img/pdf |
| Add Watermark | /api/v1/security/add-watermark |
| Add Password | /api/v1/security/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
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.