I’m looking for a solution to translate .docx or .pdf files into another language using OpenAI, while preserving the original formatting (headings, tables, bold text, etc.).
The ideal workflow would take a document as input, pass the content to OpenAI for translation, and output a new file with the same structure and style — just translated.
If anyone has done something similar or has tips on how to handle rich-text input/output in n8n using OpenAI, I’d appreciate any pointers!