Add Header / Footer - Incorrect Margins

Hi,

We’ve been trying the following code to add a HTML fragment into the header / footer of a PDF document… however we’re seeing some very odd behaviour calculating the max width of the html fragment embedded.

@jayoffice365

Thank you for contacting support.

Would you please elaborate a little more, while sharing a narrowed down code snippet along with source and generated files so that we may proceed to assist you accordingly.