Forum


Replies: 2   Views: 208
How to improve merging process ?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 01-11-2024 - 17:53

Hello,

You could use optimizeDocx to optimize the final DOCX output and reduce its size.

If the headers are the same for all DOCX documents, the easiest approach would be to remove them from the documents to be merged, then do the merging, and finally import the headers/footers using importHeadersAndFooters.

If you also want to improve the performance, Premium licenses allow using in-memory DOCX documents (https://www.phpdocx.com/documentation/cookbook/in-memory-docx-documents).

Regards.