← Back to Skills Marketplace
152
Downloads
0
Stars
0
Active Installs
7
Versions
Install in OpenClaw
/install newclaw-pdf-text-replace
Description
Replace text in PDF files while preserving visual fidelity. Handles custom font encodings, embedded subsets, encrypted PDFs, image-based scans (OCR), variabl...
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install newclaw-pdf-text-replace - After installation, invoke the skill by name or use
/newclaw-pdf-text-replace - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 152 downloads so far.
How do I install PDF Text Replace?
Run "/install newclaw-pdf-text-replace" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PDF Text Replace free?
Yes, PDF Text Replace is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PDF Text Replace support?
PDF Text Replace is cross-platform and runs anywhere OpenClaw / Claude Code is available (macos, linux).
Who created PDF Text Replace?
It is built and maintained by newclaw26 (@newclaw26); the current version is v2.1.4.
More Skills