← 返回 Skills 市场
theshadowrose

PDFExtract Pull Text from PDFs

作者 Shadow Rose · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
355
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install pdf-extract-sr
功能描述
Extract clean readable text from PDF files into agent-ready markdown. Multi-page, tables, headers. No external services.
使用说明 (SKILL.md)

PDFExtract Pull Text from PDFs

Extract clean readable text from PDF files into agent-ready markdown. Multi-page, tables, headers. No external services.


Every agent needs to read PDFs. This does it cleanly.

Usage

const { PDFExtract } = require('./src/pdf-extract');
const pdf = new PDFExtract();

const text = await pdf.extract('document.pdf');
console.log(text);

const structured = await pdf.extractStructured('document.pdf');
console.log(structured.pages);    // Array of page texts
console.log(structured.metadata); // Title, author, page count
console.log(structured.headings); // Detected headings

Features

  • Clean text extraction — strips headers/footers, page numbers, watermarks
  • Page-by-page — access individual pages or full document
  • Heading detection — identifies structure from font sizes
  • Table extraction — basic table detection and formatting
  • Metadata — title, author, creation date, page count
  • Batch processing — extract multiple PDFs at once
  • Markdown output — formatted with headings and structure preserved

Supported PDF Types

Type Support
Text PDFs Full support
Scanned/Image PDFs Basic (needs OCR)
Forms Text fields extracted
Password-protected Supported (provide password)

⚠️ Disclaimer

This software is provided "AS IS", without warranty of any kind, express or implied.

USE AT YOUR OWN RISK.

  • The author(s) are NOT liable for any damages, losses, or consequences arising from the use or misuse of this software — including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages.
  • This software does NOT constitute financial, legal, trading, or professional advice.
  • Users are solely responsible for evaluating whether this software is suitable for their use case, environment, and risk tolerance.
  • No guarantee is made regarding accuracy, reliability, completeness, or fitness for any particular purpose.
  • The author(s) are not responsible for how third parties use, modify, or distribute this software after purchase.

By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.

DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.


Support & Links

🐛 Bug Reports [email protected]
Ko-fi ko-fi.com/theshadowrose
🛒 Gumroad shadowyrose.gumroad.com
🐦 Twitter @TheShadowyRose
🐙 GitHub github.com/TheShadowRose
🧠 PromptBase promptbase.com/profile/shadowrose

Built with OpenClaw — thank you for making this possible.


🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr

安全使用建议
This skill appears to do what it claims: local PDF text extraction. Before installing, consider: (1) optional dependency: install 'pdf-parse' for best results or ensure 'pdftotext' is available on the system; (2) it reads arbitrary file paths and creates a './pdf-output' directory — avoid running it with elevated privileges and do not feed highly sensitive or untrusted PDFs to parsers without sandboxing, since PDF parsers can have vulnerabilities; (3) there are no network calls or secret requests in the code, but if you add or modify the skill, re-check for any external endpoints. If you need stronger isolation, run the skill in a container or restricted environment.
功能分析
Type: OpenClaw Skill Name: pdf-extract-sr Version: 1.0.0 The skill bundle provides a legitimate utility for PDF text extraction using the 'pdf-parse' library or the system 'pdftotext' tool. The implementation in 'src/pdf-extract.js' uses 'execFileSync' with an argument array to safely execute system commands, effectively preventing shell injection vulnerabilities, and contains no evidence of data exfiltration, malicious persistence, or harmful prompt injection.
能力评估
Purpose & Capability
Name/description match the included code: a local PDF extraction utility. Optional dependency on the npm package 'pdf-parse' and a fallback to the system 'pdftotext' binary are coherent with extracting text from PDFs.
Instruction Scope
SKILL.md simply documents usage and features. The runtime code reads arbitrary file paths (pdfPath) and creates a local output directory ('./pdf-output'). Reading files is necessary for the stated task, but because the code accepts filesystem paths, be cautious about feeding untrusted paths or PDFs (parsers can have vulnerabilities).
Install Mechanism
No install spec is provided (instruction-only), and the shipped code uses only standard Node APIs and optionally an npm package. No remote downloads or obscure install URLs are used.
Credentials
The skill requires no environment variables, no credentials, and no config paths. File system access (read PDF files, create output directory) is proportionate to its function.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It creates a local './pdf-output' directory but does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pdf-extract-sr
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pdf-extract-sr 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial upload
元数据
Slug pdf-extract-sr
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

PDFExtract Pull Text from PDFs 是什么?

Extract clean readable text from PDF files into agent-ready markdown. Multi-page, tables, headers. No external services. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 355 次。

如何安装 PDFExtract Pull Text from PDFs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pdf-extract-sr」即可一键安装,无需额外配置。

PDFExtract Pull Text from PDFs 是免费的吗?

是的,PDFExtract Pull Text from PDFs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PDFExtract Pull Text from PDFs 支持哪些平台?

PDFExtract Pull Text from PDFs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PDFExtract Pull Text from PDFs?

由 Shadow Rose(@theshadowrose)开发并维护,当前版本 v1.0.0。

💬 留言讨论