Forum


Replies: 3   Views: 3821
Multiple merges - pagination is being dropped
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 cdalzell  · 22-05-2014 - 06:12

Using PRO+, i merge 2 one page documents with forced page break between them; works fine.



If I merge that newly created document with another one page document, the page break between the first 2 pages disappears!



require_once '../libraries/PHPDocX/classes/DocxUtilities.inc';



$newDocx = new DocxUtilities();

$options = array('mergeType' => 1, 'enforceSectionPageBreak' => true, 'numbering' => 'restart');



$newDocx->mergeDocx('LSBRPNotice.docx', 'WageReqts.docx', 'merged.docx', $options);

$newDocx->mergeDocx('CoverPage.docx', 'merged.docx', 'merged2.docx', $options);



Is there something I need to do to preserve the pagination? I plan on merging a large number of document sections from separate word docx files to generate custom documents based upon selection of pages from a library.



 



Thanks



Colin