This skill provides two main actions for working with PDF files:
cd skills/pdf-simple-tool/node/ 執行命令: npm install
When the user asks to split a PDF by page range (for example, "把這個 PDF 的第 3-5 頁拆出來" / "split pages 3–5"), call the Node implementation:
skills/pdf-simple-tool/node/index.jssplitPdf(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:
inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"outputPath = "/Users/xingxing/.openclaw/workspace/test_p1-3.pdf"fromPage = 1toPage = 3When the user asks to convert a PDF to Word (for example, "把這個 PDF 轉成 Word" / "convert to docx"), call the Node implementation:
skills/pdf-simple-tool/node/index.jspdfToWord(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:
inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"outputPath = "/Users/xingxing/.openclaw/workspace/test.docx"小蔥技能有更好的技能skills外掛。
skills/pdf-simple-tool/node/index.js and uses:
pdf-lib for PDF manipulation.pdf-parse + docx for PDF-to-Word conversion.這個 Skill 質量中等偏上,核心功能穩定可用,文件說明詳細,錯誤提示友好。優點是使用簡單、引數校驗完善。不足之處在於 PDF 轉 Word 功能比較基礎,只能提取文字,排版、圖片、表格等資訊會丟失,體驗不夠理想。如果你只需要簡單的拆分頁面或提取文本,這個工具夠用;如需高質量轉換,建議期待後續版本最佳化。