Forum


Replies: 9   Views: 4050
Merging documents with adddocx - wrong list numbering
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  · 04-06-2015 - 09:11

Hello, To do this you need to use the mergeDocx method (http://www.phpdocx.com/api-documentation/docxutilities/merge-Word-documents-with-PHP), available in Corporate and Enterprise licenses. The old addDocx method (replaced by addExternalFile in phpdocx 4), uses the Word altchunk tag that doesn't preserve some styles and content properties. The mergeDocx uses a new MultiMerge class to do the merges perfectly. Using addExternalFile you can set matchSource as false to don't preserve the styles and use the included in the base DOCX. Regards.