← 返回 Skills 市场
wudi488

Stirling Pdf

作者 wudi488 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ pending
42
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install local-pdf-suite
功能描述
Complete local PDF toolkit — OCR, merge, split, compress, watermark, convert, and 30+ operations via Stirling-PDF API.
使用说明 (SKILL.md)

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

  1. Open http://your-server:3998 in your browser
  2. Log in with the username/password set above
  3. Go to Account Settings → API Keys → Generate a new key
  4. 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-KEY header
  • Returns processed file or JSON error
  • remove-blanks returns a ZIP — extract the PDF inside
  • merge requires at least 2 files
  • ocr: use chi_sim+eng for Chinese documents
  • Full endpoint list: /swagger-ui/index.html on your instance
  • OCR requires Tesseract language packs (chi_sim for Chinese)
能力标签
requires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install local-pdf-suite
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /local-pdf-suite 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Expanded documentation in SKILL.md with a Docker-based Stirling-PDF deployment guide and initial API key setup instructions. - Added project introduction and "About Stirling-PDF" section for context and feature overview. - Included a health check endpoint in the quick reference. - Clarified environment variable usage and endpoint notes. - Improved formatting and streamlined quick reference examples.
v1.0.1
- Version bump: 1.0.0 → 1.0.1 - Minor documentation updates in SKILL.md - No new features or breaking changes introduced
v1.0.0
Initial release of local-pdf-suite (pdf-toolkit): - Provides a complete local PDF toolkit powered by the Stirling-PDF API (no cloud required; all data remains local). - Supports 60+ operations, including OCR, merge, split, compress, watermark, convert, security, and more. - Enables PDF-to/convert-from docx, html, markdown, csv, epub, txt, and image formats. - Features extensive automation for page operations, metadata extraction, and batch utilities. - Requires `STIRLING_API_KEY` for authentication and can be configured via environment variables. - Includes API usage examples for all major features.
元数据
Slug local-pdf-suite
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

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。

💬 留言讨论