Forum


Replies: 4   Views: 3426
Import only footer from a template
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 ahmadaloul  · 03-06-2015 - 08:39

Hi, I need to add a custom header to my exported word file (I used the function addHeader), but at the same time I need to import the "footer" from another template. I noticed that both cases will not be done at the same time. Any help ? Thanks

Posted by admin  · 03-06-2015 - 08:49

Hello, You need to import only the footer using the $type parameter with the importHeadersAndFooters method. Regards.

Posted by ahmadaloul  · 03-06-2015 - 09:01

Deleted by ahmadaloul · 03-06-2015 - 09:08

Posted by admin  · 03-06-2015 - 09:05

Hello, As you're being replied by email, please don't duplicate the questions. Using both addHeader and importHeadersAndFooters in the correct order and using the appropriate parameters it works without error. Regards.

Posted by ahmadaloul  · 03-06-2015 - 09:22

Deleted by admin · 03-06-2015 - 10:27