← 返回 Skills 市场
152
总下载
0
收藏
0
当前安装
7
版本数
在 OpenClaw 中安装
/install newclaw-pdf-text-replace
功能描述
Replace text in PDF files while preserving visual fidelity. Handles custom font encodings, embedded subsets, encrypted PDFs, image-based scans (OCR), variabl...
安全使用建议
This skill appears to do what it claims: local PDF parsing, font/subset handling, OCR and optional decryption. Before installing, verify you trust the source code (it will run locally and read PDFs and system font directories). Note optional features require additional packages (pikepdf/qpdf for decryption, paddleocr/pytesseract and opencv for OCR) and may invoke subprocesses (qpdf) — install those only if you need that capability. Provide encryption passwords only when you intend the tool to modify protected PDFs. If you need higher assurance, review the bundled scripts (already included) or run them in an isolated environment (container or VM) on non-sensitive sample PDFs first.
功能分析
Type: OpenClaw Skill
Name: newclaw-pdf-text-replace
Version: 2.1.4
The newclaw-pdf-text-replace skill bundle is a legitimate and sophisticated PDF manipulation tool designed to replace text while preserving visual fidelity. It implements a multi-level strategy (L1–L6) to handle various PDF types, including text-based, image-based (OCR), and encrypted documents. The code utilizes standard libraries such as pypdf, fonttools, pikepdf, and paddleocr to perform complex tasks like CMap parsing, font subsetting, and content stream editing. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; subprocess calls are limited to local utilities like qpdf, and file operations are restricted to the intended PDF processing tasks.
能力标签
能力评估
Purpose & Capability
Name/description (replace text in PDFs preserving visual fidelity) align with required binaries and libraries (pypdf, pdfplumber, fonttools, pdf2image, Pillow, poppler) and the included scripts implement the stated features (byte-level CMap handling, variable-length replacement, OCR, decryption, style overlay). No unrelated services or credentials are requested.
Instruction Scope
SKILL.md and the scripts direct local operations: parsing content streams, building font subsets, OCR, optional decryption and subprocess qpdf fallback. The code reads system font directories and PDF files (expected for this purpose). There are no instructions to transmit PDF content or system data to external endpoints.
Install Mechanism
This is instruction-only with bundled source files; installation is via pip/brew commands (standard package sources and poppler). There are no downloads from untrusted URLs or archive/extract steps that would write arbitrary remote code to disk beyond the included scripts.
Credentials
No environment variables or external credentials are required. The tool accepts user-supplied passwords for encrypted PDFs via CLI arguments (reasonable for L6). It does scan system font directories (read-only) which is appropriate to find fallback fonts.
Persistence & Privilege
always is false and the skill does not request persistent global privileges or modify other skills. Autonomous invocation is allowed by platform default; combined with the skill's limited footprint this is not an elevated concern.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install newclaw-pdf-text-replace - 安装完成后,直接呼叫该 Skill 的名称或使用
/newclaw-pdf-text-replace触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.4
Fix CMap beginbfrange multi-char range parsing (off-by-one bug); add missing L2/L3/L5 modules to openclaw release; fix CMap dual-format mutual exclusion
v2.1.2
v2.1.2: added demo pipeline (create_demo_pdf.py + run_demo.sh), fixed CMap parser for space-separated bfchar format (Arial/reportlab), bundled sample certificate
v2.1.1
Fix: overlay char X-position bug - use font internal cmap for per-character width lookup instead of glyph order proxy
v2.1.0
v2.1: bundled L2-L6 modules (variable-length, multi-line, style, OCR, encryption) into skill package
v2.0.0
v2.0: variable-length replacement (L2 Tz scaling), style modification (L4 color/size), encrypted PDF support (L6 pikepdf), unified CLI with argparse, auto strategy selection
v1.1.0
Added Chinese documentation
v1.0.0
v1.0.0
元数据
常见问题
PDF Text Replace 是什么?
Replace text in PDF files while preserving visual fidelity. Handles custom font encodings, embedded subsets, encrypted PDFs, image-based scans (OCR), variabl... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 152 次。
如何安装 PDF Text Replace?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install newclaw-pdf-text-replace」即可一键安装,无需额外配置。
PDF Text Replace 是免费的吗?
是的,PDF Text Replace 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
PDF Text Replace 支持哪些平台?
PDF Text Replace 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux)。
谁开发了 PDF Text Replace?
由 newclaw26(@newclaw26)开发并维护,当前版本 v2.1.4。
推荐 Skills