Forum


Replies: 4   Views: 4749
Merging before creation?
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 loktron  · 26-01-2016 - 08:54

Is it possible to merge documents before creating them? I want to use one template, but insert different values to the same variables. Now i do it with a loop, generating a new document everytime, and would then eventually merge them. But this is very slow. So the better way would be to create multible docx objects, replace the variables, merge the objects and then create a single file. Is this possible? I have to generate up to 1000 pages at once and that takes around 2 to 3 hours...