name: evo-pdf-updater
description: Complete workflow for updating PDF forms based on text file instructions. Uses PyMuPOF. Handles parsing, comparison, replacement, form filling, and redaction.
Evo PDF Updater Skill
Overview
Updates PDF documents based on instructions in a companion text file.
CRITICAL RULES
- NEVER use strikethrough lines
- NEVER rasterize the PDF to images
- NEVER add text NEXT TO replaced values - REPLACE at SAME position
- Redaction: use add_redact_annot() with WHITE fill, then apply_redactions()
- Fill forms: align text on lines in text boxes
- Do NOT add info already correct in PDF
- Text file is SOURCE OF TRUTH
Workflow
- Parse input.txt using scripts/utils.py
- Read PDF with PyMuPDF
- Compare PDF content with parsed data
- Apply changes: replace, fill blanks, redact
- Save to /root/output/output.pdf