I have been trying to create a custom template for Pro Reports for a few hours now. Unfortunately nothing works! The preview and the PDF also look completely different.
What I try is a header and a footer on each PDF page.
I can’t even get it to work on the first page.
I have tried with very simple HTML elements and also with more complex flex styles. None of it works. I have a feeling that the PDF generation doesn’t take some styles into account. In the browser preview it is sometimes correct, but not always.
I copied the modern template after this one and experimented on the modern template file: Pro Reports extension overview - MainWP Documentation
Unfortunately without success.
For me it would be enough to add a header (35px height with background color without content) and a footer (50px height with logo left and URL right) on each page. Without margin/padding still on top and bottom respectively.
This is actually quite simple and created on the web within 5 minutes, but unfortunately it doesn’t work with this template/PDF.