PDF Split

v1.0.1

拆分 PDF 文件,支持单页拆分、页码范围和批量处理

0· 95·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for fly3094/pdf-split.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "PDF Split" (fly3094/pdf-split) from ClawHub.
Skill page: https://clawhub.ai/fly3094/pdf-split
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: node
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install pdf-split

ClawHub CLI

Package manager switcher

npx clawhub@latest install pdf-split
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

✂️ Clawdis
Binsnode
latestvk97cj3hpxd3drkfn4m8zjsmt5h84tf7e
95downloads
0stars
2versions
Updated 1w ago
v1.0.1
MIT-0

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

Comments

Loading comments...