[Resolved] PDF margin match dynamic header/footer height
-
I receive a header and a footer as a string something like "<div style='height: 300px'></div>".
This causes me to not be sure of the header/footer height so I can set the PDF margin for that because the header/footer will overlap the content if the margin is not set.
The problem is that I don't have access to
document
orwindow
onbeforeRender
, so I'm not able to generate an Element with that string and get its proper height to set as the PDF margin.I've tried lots of ways to overcome this problem, but couldn't find any. Does anyone has any idea of how I can make this possible?
-