Forum


Replies: 10   Views: 1004
Import footer from template but keep the serial number/page number
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 usman12  · 06-05-2022 - 11:52

Thanks for your quick response.

Still, we are using the trial version to test if it fits our needs before purchasing It and it is working well but only this issue which I explained. 

This is the code sample that I am using to import the footer from the existing file.

Please see and advise me if I am doing something wrong?

//import_footer_into.docx file exist in the directory with other contents
$docx = new CreateDocxFromTemplate('import_footer_into.docx');
//import_footer_from.docx file exist in the directory with footer
$docx->importHeadersAndFooters('import_footer_from.docx', 'footer');
$docx->createDocx('import_footer_into.docx');