HTML2PDF Module not rendering valid html or css correctly

No, I don’t have any specific examples.

If the Chromium header/footer option is not enough for you, you could instead leave the header/footer blank, and post process the PDF file afterwards.

For instance you could use our Stamper class to fill in the header/footer blank margin area.

Furthermore, you could use the HTML2PDF module to convert your header/footer to PDF separately, and then use Stamper.StampPage to stamp that to original PDF from HTML2PDF module. See this forum post for more about this route.

1 Like