Can OnlyOffice Handle DOCX Insertions Like Word?

Hi,

I’m encountering an issue while using docxtpl to insert one DOCX file into another. Specifically, I’m trying to insert Test2.docx into Test1.docx, and the result (output.docx) is not formatted correctly in OnlyOffice, though it works fine in Microsoft Word.

The problem is that the inserted content from Test2.docx seems to be placed incorrectly within the structure of Test1.docx, leading to formatting issues in OnlyOffice. Word handles it better, but OnlyOffice doesn’t seem to interpret the inserted content correctly.

Looks like I can’t attach the DOCX files here, but I can provide links to the raw document.xml files for each of the DOCX documents.

Here are the links to the document.xml files:

Additionally, attaching screenshots to demonstrate the issue:

If anyone has any insights or has faced a similar issue, I’d love to hear your thoughts. Specifically, I’m wondering if there’s a way to make OnlyOffice handle DOCX insertions the same way Word does, without breaking the formatting.

Thanks in advance for any help!