← Back to Skills Marketplace
90
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install pdf-split
Description
拆分 PDF 文件,支持单页拆分、页码范围和批量处理
README (SKILL.md)
PDF Split Skill
拆分 PDF 文件为单个页面或多个部分,支持批量处理,本地处理。
使用方法
拆分为单页
node index.js split input.pdf --mode single -o output/
按页码范围拆分
node index.js split input.pdf --mode range --pages "1-3,5-7" -o output/
批量拆分
for f in *.pdf; do node index.js split "$f" --mode single -o "output/$f/"; done
功能特点
- ✅ 本地处理,文件不上传
- ✅ 支持拆分为单页
- ✅ 支持按页码范围拆分
- ✅ 支持批量处理
- ✅ 自定义输出目录
- ✅ 隐私安全
示例
拆分为单页
# 拆分 PDF 为单页
node index.js split document.pdf --mode single -o pages/
# 指定输出前缀
node index.js split document.pdf --mode single -o pages/ --prefix "page_"
按页码范围拆分
# 提取第 1-3 页
node index.js split document.pdf --mode range --pages "1-3" -o output/
# 提取第 1,3,5 页
node index.js split document.pdf --mode range --pages "1,3,5" -o output/
# 提取第 1-3 页和 5-7 页
node index.js split document.pdf --mode range --pages "1-3,5-7" -o output/
批量处理
# 拆分当前目录所有 PDF
for f in *.pdf; do
node index.js split "$f" --mode single -o "output/$f/"
done
许可证
MIT
作者
fly3094
Usage Guidance
This skill appears to do exactly what it says: split PDFs locally using Node and the pdf-lib library. Before installing/running: ensure you have Node and install the pdf-lib package (npm install pdf-lib). Review the included index.js yourself since the package source/homepage is missing and the publisher is unknown. Run the tool in a directory with only files you intend to process (it reads the input path and writes files to the output path you provide). Be cautious with output and prefix values (avoid paths like '../' if you don't want files written outside the target directory). If you require higher assurance, run it in a sandboxed environment or inspect/modify the code to suit your safety policies.
Capability Analysis
Type: OpenClaw Skill
Name: pdf-split
Version: 1.0.1
The skill is a legitimate utility for splitting PDF files locally using the 'pdf-lib' library. The code in index.js and the instructions in SKILL.md are consistent with the stated purpose, performing file operations only on the specified input/output paths without any evidence of data exfiltration, remote execution, or malicious intent.
Capability Assessment
Purpose & Capability
Name/description (PDF splitting) aligns with required binary (node), declared dependency (pdf-lib), and the included index.js which implements splitting into single pages and ranges. No unrelated capabilities requested.
Instruction Scope
SKILL.md instructs running the included CLI (node index.js) on local files. The code only reads the specified input PDF and writes output PDFs; it does not access environment variables, network endpoints, or other system paths beyond the provided input/output paths.
Install Mechanism
There is no registry-level install spec, but SKILL.md metadata recommends installing the npm package 'pdf-lib' which the code uses. Installing a single well-known npm dependency is proportionate; the skill has no downloads from arbitrary URLs or extract steps.
Credentials
The skill requires no environment variables, no credentials, and no config paths. That matches a simple local file-processing utility.
Persistence & Privilege
The skill is not always-included and does not request elevated or persistent platform privileges. It does not modify other skills or system-wide agent settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pdf-split - After installation, invoke the skill by name or use
/pdf-split - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
添加批量处理和自定义输出前缀功能
v1.0.0
- Initial release of pdf-split.
- Split PDF files into single pages or custom page ranges.
- Local processing for enhanced privacy and security.
- Simple command-line usage with flexible page selection.
Metadata
Frequently Asked Questions
What is PDF Split?
拆分 PDF 文件,支持单页拆分、页码范围和批量处理. It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.
How do I install PDF Split?
Run "/install pdf-split" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PDF Split free?
Yes, PDF Split is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PDF Split support?
PDF Split is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PDF Split?
It is built and maintained by fly3094 (@fly3094); the current version is v1.0.1.
More Skills