Replies: 1   Views: 411
Add different margins for header & document content
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 BusinessBravery  · 03-01-2022 - 09:10

Hi, I wanted to add Different margins for the header & document content.
The header is an image. I am using HTML to create the document content ( embedHTML )

I have updated the document margin using the following code:
            'marginHeader' => 500,
            'marginLeft'   => 0,
            'marginRight'  => 0,
My issue is that it updates the margin for the entire document. I wanted it to have 0 margins for the header & 500 margins for document content.

let me know how I can achieve that.

Thanks in advance