Forum


Replies: 1   Views: 3342
Different page numbers
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 kobbe  · 21-06-2016 - 12:50

Trying to generate a multi page document where I want page number to reset at some point. So in same document I get page 1, 2, 3 [page break] 1, 2.

Like this:

https://support.office.com/en-us/article/Add-different-page-numbers-or-number-formats-to-different-sections-bb4da2bd-1597-4b0c-9e91-620615ed8c05

 

How can I do this?

Posted by admin  · 21-06-2016 - 15:21

Hello,

To accomplish that task you need to use the MultiMerge method available in Corporate and Enterprise licenses. Phpdocx shares headers and footers for all sections, so you'd need to create two documents and then merge them using this method:

http://www.phpdocx.com/api-documentation/docxutilities/merge-Word-documents-with-PHP

As you canse there's an option to continue or restart numbering.

Regards.