Translate PDF documents (for example Chinese to English) while preserving the original page geometry, layout, tables, chart placement, and image positions. Use this skill when users ask to keep the "same layout", "exact format", or "do not move pictures" during PDF translation.
Use this skill to replace source-language PDF text while keeping the original visual structure.
python "skills/pdf-layout-translate/scripts/translate_pdf_preserve_layout.py" \
--input "/path/to/input.pdf" \
--output "/path/to/output_en.pdf" \
--mapping "skills/pdf-layout-translate/references/mapping.sample.json" \
--formats txt md html docx
full_line translations for long narrative lines.phrase_map for short labels, table headers, and repeated terms.Read references/workflow-notes.md for implementation details and pitfalls.