Forum


Replies: 3   Views: 318
Remove left and right margins in header / footer
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 legalpilot  · 18-04-2025 - 15:25

I am the author of this post using the account that has the premium license. 

I’ve already tried using modifyPageLayout with, for exemple : 

marginHeader : 0

marginFooter : 0

marginLeft : 200

marginRight : 200

 

If I set marginLeft to 200, it applies to the whole document, including the header, but what I need is to control the margins left and right specifically for the header and the footer.

As I mentioned, I’d like to be able to place an image or some text in the header right at the edge of the document, so with 0 margin top and left, but i want to have 200 marginLeft for the rest of the document