Forum


Replies: 3   Views: 3851
Footer addpagenumber
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 jorge  · 09-06-2014 - 07:32

Hello, If you just need to add the new pager, please do the following: $pager = $docx->addPageNumber('numerical', array('jc' =>'center', 'rawWordML' => true)); $myFooter = $docx->createWordMLFragment(array($pager)); $docx->addFooter(array('default' => $myFooter)); This is, after create the pagenumber get the WordMLFragment and and it to the footer. If you want a further integration we recommend you to upgrade to phpdocx 4.0. Regards.