{"id":"pdf-text-replace","name":"pdf-text-replace","summary":"入力可能なPDFフォームのテキストをフォームフィールド値を更新して置き換えてください。このスキルは、PDFフォームの欄で名前、住所、日付、その他のテキストを更新する必要がある場合に活用すべきです。","body":"# PDF Text Replace Skill\n\nReplace text in fillable PDF forms by updating form field values.\n\n## Description\n\nThis 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.\n\n## Use Cases\n\n- Update names in filled tax forms\n- Replace addresses in PDF documents\n- Update dates or reference numbers\n- Batch update form field values\n\n## Requirements\n\n- PDF must have fillable form fields (not flattened)\n- Python 3.7+\n- pypdf library\n\n## Usage\n\n### Basic Usage\n\n```bash\npython /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \\\n    /app/uploads/input.pdf \\\n    \"OLD TEXT\" \\\n    \"NEW TEXT\" \\\n    /app/uploads/output.pdf\n```\n\n### Example: Replace Name in Tax Form\n\n```bash\npython /app/uploads/skills/public/pdf-text-replace/scripts/replace_text_in_pdf.py \\\n    /app/uploads/f5472.pdf \\\n    \"MANISH KUMAR\" \\\n    \"MANNU KUMAR\" \\\n    /app/uploads/f5472_updated.pdf\n```\n\n## Script Details\n\n**Script:** `scripts/replace_text_in_pdf.py`\n\n**Arguments:**\n1. `input_pdf` - Path to input PDF file\n2. `search_text` - Text to search for in form fields\n3. `replace_text` - Text to replace with\n4. `output_pdf` - Path to save the updated PDF\n\n**Output:**\n- Creates a new PDF with updated field values\n- Preserves all form fields (not flattened)\n- Reports number of fields modified\n\n## Limitations\n\n- Only works with fillable PDF forms (not scanned/image PDFs)\n- Replaces text in form field values, not static text\n- Case-sensitive search by default\n- Cannot modify flattened PDFs\n\n## Dependencies\n\nThe script requires the `pypdf` library, which is included in the container requirements.\n\n## Error Handling\n\nThe script will report errors if:\n- Input PDF doesn't exist\n- PDF doesn't have fillable form fields\n- Search text is not found\n- Output path is not writable","author":"@instavm","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/instavm/coderunner/tree/main/skills/public/pdf-text-replace","license":"Apache-2.0","category":"document","lang":"en","tokens":465,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"scripts/replace_text_in_pdf.py","size":3859,"sha256":"a06beafeca9787fa5e8c506de09948206b3de01fd662e602b5ef92ab78755457"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":true,"networkEndpoints":[]}}