Forum


Replies: 10   Views: 308
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 admin  · 06-05-2022 - 18:08

Hello,

The serial/page content to be imported or kept must have something to be queried by (position, content, format, ID or any other property as DOCXPath requires). If you want to automatize it you need to be able to query it correctly to don't get other unwanted contents.

The importHeadersAndFooters method import contents (and inline styles) not external styles. If the contents to be imported include external styles that are not avaiable in the template then you need to create them to get the same output, otherwise the default styles from the template will be used.

Regards.