pdf-text-replace

Solid

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.

AI & Automation 832 stars 37 forks Updated 1 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
97
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
96
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 sca...

Details

Author
instavm
Repository
instavm/coderunner
Created
11 months ago
Last Updated
1 weeks ago
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Featured

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

14,116 Updated today
eigent-ai
AI & Automation Listed

find-replace

Modern find-and-replace using sd (simpler than sed) and batch replacement patterns. Triggers on: sd, find replace, batch replace, sed replacement, string replacement, rename.

16 Updated 1 months ago
0xDarkMatter
Data & Documents Solid

phd-deepread

Guided workflow for processing academic PDFs into structured literature notes using Text-First decision tree (PyMuPDF + Tesseract OCR) and Claude-assisted analysis. Perfect for literature review and note-taking in Obsidian.

47 Updated today
heleninsights-dot
Data & Documents Solid

pdfkit-generation

Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns.

270 Updated today
agnt-gg
Code & Development Solid

code-refactor

Perform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated code patterns, updating method calls, or making consistent changes across multiple locations.

585 Updated 2 months ago
mhattingpete