返回顶部
p

pdf_simple_tool

PDF splitting and PDF-to-Word conversion tools implemented in Node.js.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
130
下载量
1
收藏
概述
安装方式
版本历史

pdf_simple_tool

# PDF Simple Tool Skill This skill provides two main actions for working with PDF files: 1. **split_pdf** – Extract a page range from a PDF into a new PDF. 2. **pdf_to_word** – Convert a PDF into a simple Word (.docx) document. ## Install cd skills/pdf-simple-tool/node/ 执行命令: npm install ## Actions ### split_pdf When the user asks to split a PDF by page range (for example, "把这个 PDF 的第 3-5 页拆出来" / "split pages 3–5"), call the Node implementation: - Entry: `skills/pdf-simple-tool/node/index.js` - Function: `splitPdf(inputPath, outputPath, fromPage, toPage)` **Inputs** - `inputPath` (string): The absolute path to the source PDF. - `outputPath` (string): The absolute path where the new PDF will be written. - `fromPage` (integer): Start page (1-based). - `toPage` (integer): End page (1-based, inclusive). Example behavior: - If the user says: "帮我把 /Users/xingxing/.openclaw/workspace/test.pdf 的第 1-3 页拆成一个 PDF 文件", map this to: - `inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"` - `outputPath = "/Users/xingxing/.openclaw/workspace/test_p1-3.pdf"` - `fromPage = 1` - `toPage = 3` ### pdf_to_word When the user asks to convert a PDF to Word (for example, "把这个 PDF 转成 Word" / "convert to docx"), call the Node implementation: - Entry: `skills/pdf-simple-tool/node/index.js` - Function: `pdfToWord(inputPath, outputPath)` **Inputs** - `inputPath` (string): The absolute path to the source PDF. - `outputPath` (string): The absolute path where the Word file (.docx) will be written. Example behavior: - If the user says: "把 /Users/xingxing/.openclaw/workspace/test.pdf 转成 Word", map this to: - `inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"` - `outputPath = "/Users/xingxing/.openclaw/workspace/test.docx"` ## Notes - Implementation code lives in `skills/pdf-simple-tool/node/index.js` and uses: - `pdf-lib` for PDF manipulation. - `pdf-parse` + `docx` for PDF-to-Word conversion. - You are responsible for wiring these actions into your agent so that natural language requests are converted into the appropriate function calls with the correct paths and page ranges.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pdf-simple-tool-1776016828 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pdf-simple-tool-1776016828 技能

通过命令行安装

skillhub install pdf-simple-tool-1776016828

下载 Zip 包

⬇ 下载 pdf_simple_tool v1.2.0

文件大小: 6.77 KB | 发布时间: 2026-4-13 11:26

v1.2.0 最新 2026-4-13 11:26
Initial release: split PDF page ranges and convert PDF to Word via Node.js.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部