PDF Text Replace

Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

453 stars 36 forksDocuments & Office Files

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add instavm/open-skills --skill pdf-text-replace
Manual install
git clone --depth 1 https://github.com/instavm/open-skills.git /tmp/open-skills
mkdir -p ~/.claude/skills
cp -r /tmp/open-skills/skills/public/pdf-text-replace ~/.claude/skills/pdf-text-replace

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# PDF Text Replace Skill

Replace text in fillable PDF forms by updating form field values.

## Description

This skill allows you to search and replace text in PDF files that have fillable form fields. It scans all form fields in the PDF, finds fields containing the search text, and replaces it with the replacement text.

## Use Cases

- Update names in filled tax forms
- Replace addresses in PDF documents
- Update dates or reference numbers
- Batch update form field values

## Requirements

- PDF must have fillable form fields (not flattened)
- Python 3.7+
- pypdf library

## Usage

### Basic Usage

```bash
python /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \
    /app/uploads/input.pdf \
    "OLD TEXT" \
    "NEW TEXT" \
    /app/uploads/output.pdf
```

### Example: Replace Name in Tax Form

```bash
python /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \
    /app/uploads/f5472.pdf \
    "MANISH KUMAR" \
    "MANNU KUMAR" \
    /app/uploads/f5472_updated.pdf
```

## Script Details

**Script:** `scripts/replace_text_in_pdf.py`

**Arguments:**
1. `input_pdf` - Path to input PDF file
2. `search_text` - Text to search for in form fields
3. `replace_text` - Text to replace with
4. `output_pdf` - Path to save the updated PDF

**Output:**
- Creates a new PDF with updated field values
- Preserves all form fields (not flattened)
- Reports number of fields modified

## Limitations
Read the full skill on GitHub

Details

Skill name
pdf-text-replace
Path
skills/public/pdf-text-replace/SKILL.md
License
Apache-2.0
Repo updated
23 January 2026

FAQ

What does the PDF Text Replace skill do?

Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names, addresses, dates, or other text in PDF form fields.

How do I install the PDF Text Replace skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add instavm/open-skills --skill pdf-text-replace. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is PDF Text Replace popular?

It lives in instavm/open-skills, which has 453 GitHub stars and 36 forks.

Related skills

Image Crop Rotate

453

instavm/open-skills

Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.

Images, Video & Audio36

Posterly

441

Chenruishuo/posterly

Create or revise academic conference posters in HTML/CSS and export print-ready PDFs. Use for poster design, layout edits, and print export.

Documents & Office Files12

XLSX Toolkit

1.2k

borghei/Claude-Skills

Audit Microsoft Excel (.xlsx) workbooks for formula density, external references, named ranges, hidden sheets, and data validation. Use when reviewing a financial model, sharing a workbook externally, or checking for data leakage.

Documents & Office FilesIn 1 list217

DOCX

617

LeastBit/Claude_skills_zh-CN

全面的文档创建、编辑和分析功能,支持修订追踪、批注、格式保留和文本提取。当 Claude 需要处理专业文档(.docx 文件)时使用:(1) 创建新文档,(2) 修改或编辑内容,(3) 处理修订追踪,(4) 添加批注,或其他任何文档任务

Documents & Office Files96

Resume Tailor

1.2k

borghei/Claude-Skills

Tailor a resume to a job description by extracting keywords, scoring match, and rewriting bullets for impact. Use when applying to a role, optimizing for ATS keyword match, or customizing a cover letter.

Documents & Office FilesIn 1 list217

PDF

617

LeastBit/Claude_skills_zh-CN

全面的 PDF 操作工具包,用于提取文本和表格、创建新 PDF、合并/拆分文档以及处理表单。当 Claude 需要填写 PDF 表单或以编程方式大规模处理、生成或分析 PDF 文档时使用。

Documents & Office Files96

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.