PDF to Editable Word Skill
Create a visually faithful DOCX by combining cleaned page backgrounds with editable, absolutely positioned text boxes. Run the deterministic CLI for every conversion; do not recreate the OOXML manually.
Workflow
- Resolve this skill directory and use
scripts/pdf2word.pyas the command wrapper. - Inspect the source before converting:
python scripts/pdf2word.py inspect INPUT.pdf --json
- Stop and report the limitation when
conversion_readyis false. Read compatibility.md for the relevant failure mode. - Convert into a dedicated work directory:
python scripts/pdf2word.py convert INPUT.pdf OUTPUT.docx --work-dir WORK_DIR --dpi 144
- If conversion is interrupted, rerun the same command with
--resume. Never reuse a work directory for a different PDF or page range. - Validate the output against the source:
python scripts/pdf2word.py validate OUTPUT.docx --pdf INPUT.pdf --json
- Treat validation failure as conversion failure. Do not deliver the DOCX merely because the file exists.
- For high-stakes output, open the result in Microsoft Word and inspect the first, middle, and last pages plus pages with unusual layouts.
Delivery
Report the output path, page count, editable text-box count, background-image count, validation result, and any compatibility warnings. State clearly that text is editable while non-text graphics remain in the page background.
Do not claim that tables, diagrams, or images are semantically editable. Do not claim support for OCR, mixed page sizes, or LibreOffice fidelity in v0.1.