Forum


Replies: 6   Views: 1518
How to selectively add to multimerge
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 cem  · 30-10-2020 - 13:59

Hi,

I'll take a look at the saveDocx() method, that might help.  The main issue was i was hoping for something like an insertDocx where you could insert a doc into either the very beginning or the end.  The problem is we have cover pages and back covers, but not always.  I suppose I'll just play with a temp array like i already have and test for the numerous conditions where a front cover or back cover exists or not, then try and get the merge to put it in the right spot. 

I'm still not sure what unshift() doesn't work tho.  that would solve the problem of moving a doc to the first position of the array. 

Thanks