Forum


Replies: 3   Views: 1102
Set first page of document to be its own section
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  · 03-09-2021 - 16:06

Hello,

Yes, for that specific task you need to use an Advanced or a Premium that allow adding contents in specific positions using DOCXPath or, maybe an easier approach, using mergeDocx to generate a DOCX and add a first page before it. We recommend you using a Premium license so you can also use DOCXCustomizer (among all other features of this license) that will ease your code.

Please note that, internally, DOCX documents don't work with pages but with sections. A section can fill one page or more pages (or even less than a page).

After you have purchased a license, do not hesitate to contact us on contact[at]phpdocx.com with a DOCX sample that illustrates exactly the output you need to get and we'll generate a sample code using phpdocx.

Regards.