/install local-pdf-suite
PDF Toolkit
Local PDF processing suite powered by Stirling-PDF. All operations run on your own hardware — no cloud, no uploads, data stays private.
About Stirling-PDF
Stirling-PDF is a powerful, open-source PDF editor that lets you edit, sign, redact, convert, and automate PDFs without sending documents to third-party services. It offers 60+ operations including:
- OCR — Turn scanned images into searchable PDFs (Chinese + English supported)
- Merge/Split — Combine or break apart PDFs
- Compress — Reduce file size without quality loss
- Convert — PDF ↔ Word/HTML/Markdown/CSV/EPUB/PDF/A
- Security — Watermark, password protect, encrypt/decrypt, flatten
- Edit — Rotate, crop, reorder pages, add page numbers
- Extract — Pull images, bookmarks, metadata from PDFs
Self-hosted means your sensitive documents never leave your machine.
Deploy with Docker
# Create directories for persistent data
mkdir -p /opt/stirling-pdf/data /opt/stirling-pdf/logs
# Run Stirling-PDF
docker run -d \
--name stirling-pdf \
-p 3998:8080 \
-v /opt/stirling-pdf/data:/data \
-v /opt/stirling-pdf/logs:/logs \
-e DOCKER_ENABLE=true \
-e PUID=1000 \
-e PGID=1000 \
-e SECURITY_INITIALLOGIN_USERNAME=admin \
-e SECURITY_INITIALLOGIN_PASSWORD=your-password \
--restart unless-stopped \
frooodle/s-pdf:latest
Then access at http://your-server:3998
First-time Setup
- Open
http://your-server:3998in your browser - Log in with the username/password set above
- Go to Account Settings → API Keys → Generate a new key
- Copy the key and set it as an environment variable:
export STIRLING_API_KEY="your-generated-api-key"
export STIRLING_BASE_URL="http://your-server:3998"
Quick Reference
Health check
GET /api/v1/info/health
X-API-KEY: $STIRLING_API_KEY
OCR — Image/Scan to searchable PDF
POST /api/v1/misc/ocr-pdf
X-API-KEY: $STIRLING_API_KEY
Form: [email protected], languages=chi_sim+eng
Merge — Combine multiple PDFs
POST /api/v1/general/merge-pdfs
X-API-KEY: $STIRLING_API_KEY
Form: fileInput[][email protected], fileInput[][email protected], sortType=orderProvided
Compress — Reduce file size
POST /api/v1/misc/compress-pdf
X-API-KEY: $STIRLING_API_KEY
Form: [email protected], compressionLevel=standard
Remove blank pages
POST /api/v1/misc/remove-blanks
X-API-KEY: $STIRLING_API_KEY
Form: [email protected]
Returns: ZIP containing processed PDF
Convert PDF to other formats
POST /api/v1/convert/pdf/word → .docx
POST /api/v1/convert/pdf/html → .html
POST /api/v1/convert/pdf/markdown → .md
POST /api/v1/convert/pdf/csv → .csv
POST /api/v1/convert/pdf/epub → .epub
POST /api/v1/convert/pdf/txt → .txt
POST /api/v1/convert/pdf/pdfa → PDF/A (archival)
Convert images to PDF
POST /api/v1/convert/img/pdf
X-API-KEY: $STIRLING_API_KEY
Form: [email protected], colorType=color, fitOption=maintainAspectRatio
Security
POST /api/v1/security/add-watermark → text/image watermark
POST /api/v1/security/remove-watermark
POST /api/v1/security/encrypt → password protect
POST /api/v1/security/decrypt → remove password
POST /api/v1/security/flatten → flatten annotations
POST /api/v1/security/sign → digital signature
Page operations
POST /api/v1/general/split-pdf → split by page range
POST /api/v1/general/rotate-pdf → rotate pages
POST /api/v1/general/extract-pages → extract specific pages
POST /api/v1/general/move-pages → reorder pages
Extract
POST /api/v1/images/extract-images → pull images from PDF
POST /api/v1/misc/extract-bookmarks → extract PDF bookmarks
POST /api/v1/misc/extract-metadata → read PDF metadata
Utilities
POST /api/v1/general/add-page-numbers
POST /api/v1/general/rename
POST /api/v1/general/join-pdfs
POST /api/v1/general/flatten → flatten PDF form fields
Environment
Set before use:
export STIRLING_API_KEY="your-api-key"
export STIRLING_BASE_URL="http://your-server:3998" # optional, defaults to localhost
Notes
- All requests require
X-API-KEYheader - Returns processed file or JSON error
remove-blanksreturns a ZIP — extract the PDF insidemergerequires at least 2 filesocr: usechi_sim+engfor Chinese documents- Full endpoint list:
/swagger-ui/index.htmlon your instance - OCR requires Tesseract language packs (
chi_simfor Chinese)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install local-pdf-suite - After installation, invoke the skill by name or use
/local-pdf-suite - Provide required inputs per the skill's parameter spec and get structured output
What is Stirling Pdf?
Complete local PDF toolkit — OCR, merge, split, compress, watermark, convert, and 30+ operations via Stirling-PDF API. It is an AI Agent Skill for Claude Code / OpenClaw, with 42 downloads so far.
How do I install Stirling Pdf?
Run "/install local-pdf-suite" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Stirling Pdf free?
Yes, Stirling Pdf is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Stirling Pdf support?
Stirling Pdf is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Stirling Pdf?
It is built and maintained by wudi488 (@wudi488); the current version is v1.0.2.