Forum


Replies: 4   Views: 387
Mergedocx options
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  · 10-02-2025 - 16:20

Hello,

The available options are detailed on the page (https://www.phpdocx.com/api-documentation/docxutilities/merge-Word-documents-with-PHP). This page includes a parameters table with all available options, their types, and the documentation: mergeType, enforceSectionPageBreak, numbering, lineBreaks, forceLatestStyles, renameStyles, and importEmbeddedFonts.

The same information is also detailed in the practical guide (https://www.phpdocx.com/documentation/practical/merging Merging DOCX documents section). And the phpdoc documentation included in the class.

For example, to set mergeType as 1:

$merge->mergeDocx('document1.docx', array('document2.docx', 'document3.docx'), 'output.docx', array('mergeType' => 1));

Regards.