How to merge multiple .docx files in n8n while preserving formatting?

Hi everyone,

I’m currently working on a workflow where I generate a final .docx file based on conditional logic. For this, I’ve split the content into several individual .docx files (building blocks), which should be merged depending on certain if conditions in the workflow.

I’ve tried different approaches, but so far, every time I merge the documents, the formatting (e.g. font size, colors, bold text, etc.) is lost.

Is there a way in n8n to merge multiple .docx files while keeping all original formatting intact?

Any tips, plugins, or node combinations that could help with this would be highly appreciated!

Thanks in advance :folded_hands:

Merge nodes (and also Append binaries) join data streams or binary files, but they don’t maintain the formatting of complex .docx documents. They’re useful for merging plain text or CSVs, but not for stylized Office files.

To add to that, you could, however, try to lookup an online service which offers such functionality and also has an API endpoint. Then you could integrate it into your workflow by calling such API from an HTTP Request node.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.