Trying to fit template inside a letterhead
-
https://playground.jsreport.net/w/SimonHenz97/BevfD4vK
Hello, for my current Project I need to add a letterhead to my generated Pages like this.
the thing is I only got a PDF file with the headers and footers already backed in.
I could make screenshots of those parts and create individual parts like that but I still need to make sure they are backed into the right pages.Header A doesn't seem so hard, because I can just add it at the top of the template, but Header B needs to be added after every page break.
My current solution would be to add a huge margin to the template and merge the different parts onto it, but is there a better solution, especially because the page margins need to be different per header.
I also don't know why there is a big margin before the headers in my playground.
Any help is appreciated, thank you!
-
What about the solution mentioned here
https://forum.jsreport.net/topic/2899/solution-custom-pdf-margin-with-unknown-header-footer-heights
-
That is indeed helpful, thanks for the help!