Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

pdf-toolkitPDF toolkit 文档

Agent Skill

pdf-toolkit 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

21,662

周安装

921

GitHub Stars

公开资料未说明

下载量

7,589
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pdf-toolkit(PDF toolkit 文档)
来源仓库:https://github.com/youpele52/pdf-toolkit
安装命令:
openclaw skills install pdf-toolkit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pdf-toolkit

简介

pdf-toolkit 用于处理 PDF、DOCX 文档,支持 OCR 识别与文本转语音功能。

  • 适合在 OpenClaw 中整理说明材料、转换文档格式或辅助无障碍阅读时使用。
  • 需读取 SKILL.md 后执行 uv run 命令,按参数调用本地脚本。
  • 安装命令:openclaw skills install pdf-toolkit;涉及文件读写与外部工具调用。
  • 注意权限范围,避免对系统文件或敏感内容进行批量操作。

SKILL.md

name
pdf-toolkit
description
Run a local script to work with PDF files, DOCX documents, OCR, and text-to-speech. Use the read tool to load this SKILL.md, then exec the uv run command inside it. Do NOT use sessions_spawn. Triggers: read pdf, extract text from pdf, merge pdfs, split pdf, rotate pdf, ocr pdf, read docx, create docx, text to speech, convert to mp3, pdf info, pdf pages.
homepage
https://pypdf.readthedocs.io
metadata
{"clawdbot":{"emoji":"📄","requires":{"bins":["uv"]}}}

System Dependencies

  • uv must already be installed because this skill is executed with uv run, and uv installs the Python dependencies declared in src/main.py.
  • ffmpeg is needed for tts because the speech output is normalized and written as an .mp3 file through ffmpeg.
  • tesseract is needed for ocr because it performs the actual optical character recognition on scanned page images.
  • pdfimages is also needed for ocr because it extracts page images from PDFs before those images are passed to tesseract; pdfimages comes from poppler.
  • pandoc is optional for convert because it can convert between many document formats when text-based conversion is possible.
  • libreoffice is an optional alternative to pandoc for convert because it can handle document conversions that pandoc may not support well.

File Access And Network Behavior

  • This skill operates on the file paths provided by the caller. It can read from and write to any host path the caller supplies; it is not limited to the OpenClaw workspace.
  • The /root/.openclaw/workspace/... paths in the command examples show where the skill entrypoint lives. They do not restrict which files the skill can access.
  • The tts command uses edge-tts, which sends the input text to an external text-to-speech service over the network to generate audio.
  • Do not use tts with sensitive or private text unless you are comfortable sending that text off-host.
  • All other commands run locally on the host, subject to the optional local binaries documented below.

Skill: PDF Toolkit

When to use

  • User wants to extract text, tables, or images from a PDF.
  • User wants to get metadata or page count from a PDF.
  • User wants to merge, split, or rotate a PDF.
  • User wants to create a new PDF from plain text or Markdown.
  • User wants to read or write a DOCX file.
  • User wants to OCR a scanned PDF (requires tesseract on host).
  • User wants to convert text or a document to an MP3 audio file (requires ffmpeg on host).
  • User wants to convert between document formats (requires pandoc or libreoffice on host).
  • User wants to check which optional system tools are available.

When NOT to use

  • User wants to view or render a PDF visually — use a PDF viewer.
  • User wants to fill in PDF form fields — this skill does not support AcroForms.
  • User wants to edit an existing PDF's text in-place — use a dedicated PDF editor.

Commands

Check available tools

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py doctor

Get PDF metadata and page count

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py info <pdf_path>

Extract text from a PDF

# All pages
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-text <pdf_path>

# Specific pages (1-indexed, comma-separated or ranges)
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-text <pdf_path> --pages 1,3,5-8

Extract tables from a PDF

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-tables <pdf_path>
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-tables <pdf_path> --pages 2-4

Extract images from a PDF

# Saves images to current directory by default
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-images <pdf_path>
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-images <pdf_path> --output-dir /path/to/output

Merge PDFs

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py merge <pdf1> <pdf2> [<pdf3> ...] --output merged.pdf

Split a PDF

# Split into individual pages
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py split <pdf_path> --output-dir /path/to/output

# Extract a page range into a new PDF
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py split <pdf_path> --pages 2-5 --output extracted.pdf

Rotate pages in a PDF

# Rotate all pages 90 degrees clockwise
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py rotate <pdf_path> --degrees 90 --output rotated.pdf

# Rotate specific pages
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py rotate <pdf_path> --degrees 180 --pages 1,3 --output rotated.pdf

Create a PDF from text

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py create-pdf --text "Hello, world!" --output hello.pdf
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py create-pdf --file input.txt --output document.pdf

Read a DOCX file

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py read-docx <docx_path>

Write a DOCX file

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py write-docx --text "Content here" --output document.docx
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py write-docx --file input.txt --output document.docx

OCR a scanned PDF (requires tesseract)

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py ocr <pdf_path>
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py ocr <pdf_path> --pages 1-3 --lang eng

Convert text or document to speech (requires ffmpeg)

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py tts --text "Hello, world!" --output speech.mp3
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py tts --file input.txt --output speech.mp3
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py tts --file document.pdf --output speech.mp3
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py tts --text "Hello" --voice en-GB-SoniaNeural --output speech.mp3

Convert document formats (requires pandoc or libreoffice)

uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py convert <input_path> --output <output_path>

Examples

# Inspect a PDF
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py info report.pdf

# Pull text from pages 1–3
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py extract-text report.pdf --pages 1-3

# Merge two PDFs
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py merge a.pdf b.pdf --output combined.pdf

# OCR a scanned document
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py ocr scan.pdf

# Read a Word document
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py read-docx report.docx

# Text to MP3
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py tts --text "Welcome to the future." --output welcome.mp3

# Check what is available on this host
uv run /root/.openclaw/workspace/skills/pdf-toolkit/src/main.py doctor

Chat Delivery

  • When this skill is used in a chat interface that supports file attachments, such as Telegram, any generated output file should be sent back to the user as an attachment after successful creation or conversion.
  • This applies to commands that create files, including create-pdf, write-docx, extract-images, merge, split, rotate, tts, and convert.
  • If a temporary output file is created in the Claw runtime temporary folder for delivery, delete that temporary file immediately after the file has been sent successfully to the user.
  • Do not delete files that were written to a user-requested destination outside the Claw temporary folder.
  • If the chat environment cannot send file attachments, report the output path clearly instead of claiming the file was delivered.

Output

  • Plain text with labeled sections separated by blank lines.
  • Errors are prefixed with Error:.
  • The doctor command shows a table of available and missing tools.

Notes

  • uv run reads the inline # /// script dependency block in main.py and auto-installs Python packages in an isolated environment — no pip install or venv setup needed.
  • Core features (info, extract-text, extract-tables, merge, split, rotate, create-pdf, read-docx, write-docx) work with uv alone — no system binaries required.
  • OCR requires tesseract installed on the host (brew install tesseract / apt install tesseract-ocr). Also needs pdfimages from poppler (brew install poppler).
  • TTS requires ffmpeg installed on the host (brew install ffmpeg / apt install ffmpeg).
  • Document conversion requires pandoc or libreoffice on the host.
  • Run doctor first if you are unsure which features are available.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.65%
按下载量换算5,741

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills