Hello,
Thanks for sending the information about the license you are using.
Please note that a DOCX document doesn't have specific left and right margins for headers or footers. Left and right margins are common to the whole document.
Top and bottom margins have specific styles you can change by using marginTop, marginBottom, marginHeader, and marginFooter options available in modifyPageLayout and addSection methods.
In this case, after setting the top/header/bottom/footer margins, the easiest approach is to set a negative left indentation for the content of the header/footer to get the needed output. addTable, addText, and other phpdocx methods include options to set custom indentations.
Also, please note the support included in each license as explained at https://www.phpdocx.com/support#howMuchSupport (What support includes my license? section).
The license you are using was purchased nearly one year ago and doesn't include LUS, so support is limited to general questions and doubts about using phpdocx. For technical support without opening support tickets (https://www.phpdocx.com/support), LUS must be active in your license or a license/upgrade purchased in the last six months.
To get technical support, please:
- Upgrade your license to the latest version of phpdocx. We also recommend that you include LUS when you purchase the upgrade. You can upgrade your license on "MY PHPDOCX" page after login.
- Or open a support ticket: https://www.phpdocx.com/support
After you have upgraded your license or opened a support ticket, we can provide further technical support. For example, generating a whole custom sample script to illustrate how to accomplish the requested task by adding tables and images to headers and footers.
Regards.