Forum


Replies: 13   Views: 2409
How to use phpdocx_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 rapidtech  · 25-11-2019 - 10:16

Ok. Thank you.

How to add a footer on each page? In my case, I am using sections as I've mentioned above. When I add a footer at the end of the code then the footer appears only on the last page. If I place the addFooter function in the very beginning, then the footer appears at each page but at the same time each section also starts from a new page.

$default = new WordFragment($docx, 'default');
$default->addText('default page footer.');
$docx->addFooter(array('default' => $default));