[Ultimate PDF] Header/footer mislocation and cropped word lines
Reactive icon
Forge component by Leonardo Fernandes


I am having some issues generating a pdf from a html page. I cannot figure out what html/css is blowing the page limits calculation, but the pdf is generated with the header in the middle of the page (first page is ok) and some paragrafs are cropped into to the next page (see attachments).

The page break and avoid page break isn´t working either.

Thanks for your help.



Hi Vitor. Could you share an example of a report so we can troubleshoot?

The page breaks and avoid page breaks are now working. The parent container must not have a width defined with column number, must be fill.

The only thing I cannot get it to work now is the repeating header/footer. The footer and header is only correctly placed in the first page. In the following pages the footer is printed somewhere in the middle of the page. Must be related with the html/css, but I havent figured out why yet.


Vitor, I can only help you if you share an example report showing your problem.

Here is a PDF and the html that was used to generate it.




Vitor, could you share the module that generates the report?

Or, alternatively, a module that produces a similar report that shows the same problem. The data on the report doesn't need to be the same, so you could replace any dynamic data with some static hardcoded value.

Did anybody manage to find a solution to this problem?

I'm currently working with the PrintLayout and using the PageNumber webblock in the Footer, and I am having the same issue. When I don't use the PageNumber webblock, the header and footer are placed in the correct positions on each page, but when I use the PageNumber webblock, the header and footer are only placed in the correct location on the first page, and are then offset more to the top on each subsequent page.

I'm facing the same issue. Any news from the UltimatePDF team? :)

Thanks in advance.

So... is there an answer for this? Having the exact same issue


Hi Vasco. Have you tried with the latest Ultimate PDF version? We have recently changed the rendering of headers and footers and this issue should no longer happen.

Seeing that the latest version was published 12 hours ago, i'm pretty sure that no i'm not using the latest version..! Will try to see if it fixes the issue, thanks for the quick reply Leonardo!

Does the problem was fixed with the new version Vasco?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.