/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)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install local-pdf-suite - 安装完成后,直接呼叫该 Skill 的名称或使用
/local-pdf-suite触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Stirling Pdf 是什么?
Complete local PDF toolkit — OCR, merge, split, compress, watermark, convert, and 30+ operations via Stirling-PDF API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。
如何安装 Stirling Pdf?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install local-pdf-suite」即可一键安装,无需额外配置。
Stirling Pdf 是免费的吗?
是的,Stirling Pdf 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Stirling Pdf 支持哪些平台?
Stirling Pdf 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Stirling Pdf?
由 wudi488(@wudi488)开发并维护,当前版本 v1.0.2。