stirling-pdfSelf-hosted REST API for comprehensive PDF manipulation including merge, split, convert, OCR, compress, sign, redact, and secure PDFs.
Install via ClawdBot CLI:
clawdbot install angusthefuzz/stirling-pdfSelf-hosted PDF manipulation platform with 60+ tools via REST API.
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/swagger-ui/index.html on your deployment# 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
merge - Combine multiple PDFssplit - Split PDF into partsrotate - Rotate pagesextract-pages - Extract specific pagesreorder - Reorganize pagesconvert-to-pdf - Word, Excel, Images, HTML โ PDFpdf-to-word - PDF โ Wordpdf-to-image - PDF โ Imagespdf-to-text - Extract textcompress - Reduce file sizeocr - Make scanned PDFs searchableadd-watermark - Add text/image watermarkadd-stamp - Add stampredact - Remove sensitive contentsign - Add signatureadd-password - Password protectremove-password - Remove passwordsanitize - Remove metadata/scriptsFor 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 for all 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 |
fileInputGenerated Mar 1, 2026
Law firms can use Stirling-PDF to merge case files, redact sensitive client information, and add digital signatures to contracts. This ensures compliance and streamlines document workflows for litigation and transactions.
Researchers can compress large PDFs of journal articles, OCR scanned historical documents for searchability, and split combined papers into individual chapters. This aids in organizing literature reviews and sharing findings efficiently.
Hospitals can sanitize PDFs to remove metadata, add watermarks for confidentiality, and convert patient forms from images to PDFs. This supports HIPAA compliance and secure document management in medical administration.
Companies can automate merging multiple contract drafts, adding company stamps, and converting Word documents to PDFs for finalization. This speeds up deal closures and reduces manual errors in corporate operations.
Libraries and museums can OCR old scanned books to make them searchable, compress files for storage, and split large archives into manageable sections. This preserves historical documents while improving accessibility.
Offer Stirling-PDF as a cloud-based service with tiered plans based on usage limits and advanced features like OCR or batch processing. This generates recurring revenue from businesses needing scalable PDF tools without self-hosting.
License the skill to large organizations for integration into their internal systems, providing custom branding and dedicated support. This yields high-value contracts from sectors like finance or government requiring secure, tailored document management.
Provide free basic API calls with rate limits, then charge for premium features such as high-volume processing, priority support, or advanced security options. This attracts developers and small businesses, converting them to paid users as needs grow.
๐ฌ Integration Tip
Ensure the Stirling-PDF instance is running and accessible, and set environment variables like STIRLING_PDF_URL correctly for seamless API calls.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
็จ MinerU API ่งฃๆ PDF/Word/PPT/ๅพ็ไธบ Markdown๏ผๆฏๆๅ ฌๅผใ่กจๆ ผใOCRใ้็จไบ่ฎบๆ่งฃๆใๆๆกฃๆๅใ
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.