Xpersona
P

PDF Simple Tool

CLAWHUB · Unverified

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

62
Rank
84
Safety
973
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 973 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17brjqbs633vaxfgktks1nx2983n0fw:pdf-simple-tool
  1. Install using `clawhub skill install s17brjqbs633vaxfgktks1nx2983n0fw:pdf-simple-tool` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/daguniang/pdf-simple-tool before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-daguniang-pdf-simple-tool/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

28,475 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: pdf_simple_tool
description: PDF splitting and PDF-to-Word conversion tools implemented in Node.js.
---

# 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.

_meta.json

{
  "ownerId": "kn74wey8zr147m8trazffhf6398329rc",
  "slug": "pdf-simple-tool",
  "version": "1.2.0",
  "publishedAt": 1774530384084
}

skill-card.md

## Description:

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

This skill is ready for commercial/non-commercial use.

## Publisher:

[daguniang](https://clawhub.ai/user/daguniang)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to split selected PDF page ranges into new PDFs or convert PDF text into simple .docx files.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill reads source PDFs and writes output files on local paths, so an incorrect output path could overwrite important files.

Mitigation: Use explicit output paths in a workspace directory and avoid writing over important existing files.

Risk: The supplied security guidance notes a vulnerable transitive nanoid dependency in the npm dependency set.

Mitigation: Review, update, or pin dependencies before use.

## Reference(s):


## Skill Output:

**Output Type(s):** [Files, Text, Shell commands, Guidance]

**Output Format:** [PDF and DOCX files with status text or JSON-like status objects]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [PDF-to-Word conversion extracts text into a simple DOCX and does not preserve complex PDF layout.]

## Skill Version(s):

1.2.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

node/package-lock.json

{
  "name": "pdf-tools-skill",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "pdf-tools-skill",
      "version": "1.0.0",
      "dependencies": {
        "docx": "^9.0.0",
        "pdf-lib": "^1.17.1",
        "pdf-parse": "^1.1.1"
      }
    },
    "node_modules/@pdf-lib/standard-fonts": {
      "version": "1.0.0",
      "resolved": "https://registry.npmmirror.com/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz",
      "integrity": "sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==",
      "license": "MIT",
      "dependencies": {
        "pako": "^1.0.6"
      }
    },
    "node_modules/@pdf-lib/upng": {
      "version": "1.0.1",
      "resolved": "https://registry.npmmirror.com/@pdf-lib/upng/-/upng-1.0.1.tgz",
      "integrity": "sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ==",
      "license": "MIT",
      "dependencies": {
        "pako": "^1.0.10"
      }
    },
    "node_modules/@types/node": {
      "version": "25.5.0",
      "resolved": "https://registry.npmmirror.com/@types/node/-/node-25.5.0.tgz",
      "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==",
      "license": "MIT",
      "dependencies": {
        "undici-types": "~7.18.0"
      }
    },
    "node_modules/core-util-is": {
      "version": "1.0.3",
      "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",
      "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
      "license": "MIT"
    },
    "node_modules/docx": {
      "version": "9.6.1",
      "resolved": "https://registry.npmmirror.com/docx/-/docx-9.6.1.tgz",
      "integrity": "sha512-ZJja9/KBUuFC109sCMzovoq2GR2wCG/AuxivjA+OHj/q0TEgJIm3S7yrlUxIy3B+bV8YDj/BiHfWyrRFmyWpDQ==",
      "license": "MIT",
      "dependencies": {
        "@types/node": "^25.2.3",
        "hash.js": "^1.1.7",
        "jszip": "^3.10.1",
        "nanoid": "^5.1.3",
        "xml": "^1.0.1",
        "xml-js": "^1.6.8"
      },
      "engines": {
        "node": ">=10"
      }
    },
    "node_modules/hash.js": {
      "version": "1.1.7",
      "resolved": "https://registry.npmmirror.com/hash.js/-/hash.js-1.1.7.tgz",
      "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==",
      "license": "MIT",
      "dependencies": {
        "inherits": "^2.0.3",
        "minimalistic-assert": "^1.0.1"
      }
    },
    "node_modules/immediate": {
      "version": "3.0.6",
      "resolved": "https://registry.npmmirror.com/immediate/-/immediate-3.0.6.tgz",
      "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
      "license": "MIT"
    },
    "node_modules/inherits": {
      "version": "2.0.4",
      "resolved": "https://registry.npm

node/package.json

{
  "name": "pdf-tools-skill",
  "version": "1.0.0",
  "type": "module",
  "dependencies": {
    "pdf-lib": "^1.17.1",
    "pdf-parse": "^1.1.1",
    "docx": "^9.0.0"
  }
}

Sponsored

Ads related to PDF Simple Tool and adjacent AI workflows.