100
Views
5
Comments
[Ultimate PDF] Header/footer mislocation and cropped word lines
Question
Forge component by Leonardo Fernandes
15
Published on 08 Jan 2021

Hello,


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.

crop1.png

mvp_badge
MVP
Rank: #5

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

Rank: #19782

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.

mvp_badge
MVP
Rank: #5

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

Rank: #19782

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


Thanks

report.zip

mvp_badge
MVP
Rank: #5

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.