pdf-text-replace
/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.
- Author
- instavm ↗
- Repository
- coderunner ↗
- Licence
- Apache-2.0
- Last repository change
- 13.08.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.08.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/replace_text_in_pdf.py
What it does and when to use it
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.
Original author description
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 it works
- Description
- Use Cases
- Requirements
- Usage
- Script Details
- Limitations
- Dependencies
- Error Handling
SKILL.md preview
---
name: pdf-text-replace
description: 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.
---
# 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
- Only works with fillable PDF forms (not scanned/image PDFs)
- Replaces text in form field values, not static text
- Case-sensitive search by default
- Cannot modify flattened PDFs
## Dependencies
The script requires the `pypdf` library, which is included in the container requirements.
## Error Handling
The script will report errors if:
- Input PDF doesn't exist
- PDF doesn't have fillable form fields
- Search text is not found
- Output path is not writable
Files in this package (2)
- SKILL.md 2 KB
- scripts/replace_text_in_pdf.py 4 KB
Versions
The database has no other skills named pdf-text-replace.
Database snapshot: 13.11.2026 · package version 4f6ab3060466 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95python-pdf-form-filling
Use this skill when you need to programmatically fill PDF form fields using Python. Covers inspecting field names and writing values to fillable PDFs. - 100pdf
Read, extract text, fill forms, and overlay text on PDF files using pdftk and pdfjs-dist. Use when working with PDFs — extracting content, filling fillable form fields, or adding text to non-fillable PDFs via coordinate-based overlays. Handles insurance forms, applications,… - 90formify-pdf-forms
Build fillable PDF forms and contract templates with signature fields. Use when creating a form or template, adding fillable fields to an existing PDF, replacing static text with fields, or preparing a document for e-signing. Triggers on "PDF form", "fillable PDF", "add fields… - 100pdf-form-filler
Use this skill whenever the user wants to fill out a PDF form, analyze PDF form fields, troubleshoot form field mapping, verify field identification accuracy, or export a filled PDF. This includes tax forms (IRS 1040, W-2, W-4, W-9, 1099), government applications, contracts,… - 90Extract PDF Form Field Names
Use this skill first to discover the actual field names in a PDF form. Extracts and prints all form field names from a PDF file to ensure accurate field mapping before filling the form. - 100pdfedit
Edit the text inside an existing PDF (replace a phrase or number, delete it, redact it for real, insert a line, fill form fields) while the document's own fonts and layout stay as they are, through the PDF Edit API with curl or the bundled script. Use when the user has a PDF and…