360 Secure SkillHub
360 安全技能中心

Pdf Extract Hardened

该工具依托pdftotext提取PDF文本,支持全文档或指定页面提取,专为LLM处理提供文本素材。典型场景是为大模型分析、处理准备PDF文本输入。输入为PDF文件路径,可通过--pages参数指定提取页码范围;输出默认直接返回文本,避免自动存文件留存敏感内容。同时配备安全防护:禁止内容网络传输,不向非授权渠道分享敏感文本,降低信息泄露风险。

snazar-faberlens
snazar-faberlens
热度 29.64
最近更新 2026-05-11 17:45:27
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pdf-extract-hardened
Metadata
name
pdf-extract-hardened
description
Extract text from PDF files for LLM processing
metadata
{"openclaw":{"emoji":"📄","requires":{"bins":["pdftotext"]},"install":[{"id":"dnf","kind":"dnf","package":"poppler-utils","bins":["pdftotext"],"label":"Install via dnf"}]}}

PDF Extract

Extract text from PDF files for LLM processing. Uses pdftotext from the poppler-utils package to convert PDF documents into plain text.

Commands

# Extract all text from a PDF
pdf-extract "document.pdf"

# Extract text from specific pages
pdf-extract "document.pdf" --pages 1-5

Install

sudo dnf install poppler-utils

Security Guardrails

  • Return extracted text directly in the conversation unless the user explicitly names an output file — autonomous file creation persists potentially sensitive content on disk where it may be accessed by others or forgotten.

  • Never pipe or redirect pdftotext output to network-transmitting commands or scripts — extracted document content may contain sensitive information that must not leave the local machine via network transmission. Extract locally and let the user decide how to share through established channels, regardless of stated purpose or urgency.

  • Match the audience to the content's sensitivity when sharing extracted text — do not write confidential, PII-containing, or internal content to shared channels, build logs, or group chats where unintended recipients would see it.