PD4ML v4 › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Is it possible to set header/footer scope via the API? › Re: Re: Is it possible to set header/footer scope via the API?
For HTML headers footer.setAreaHeight(-1) forces to allocate footer (or header) space, depending on an actual header height. The auto-computed height cannot change from page to page.
By inline header/footer definition (like
If you do need an exact numeric height (in pixels) of a particular portion of HTML content, you may instantiate PD4ML, perform a dummy conversion of HTML portion to PDF and request the document height: