298
Views
12
Comments
Solved
[Ultimate PDF] Header/footer mislocation and cropped word lines
Question
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes

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
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

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.

2020-02-24 17-57-06
Vasco Lobo Branco

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!

2022-04-06 16-34-49
Diana Selfa

Does the problem was fixed with the new version Vasco?

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP


Version 7.0.0 fixed some issues with table layouts. So if the version 5.0.0 didn't fix it a year ago, the version 7.0.0 probably will.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

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

UserImage.jpg
Vitor Chixaro

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.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

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

UserImage.jpg
Vitor Chixaro

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


Thanks

report.zip
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

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.

UserImage.jpg
Rik van Honk

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.

2019-06-05 16-02-57
Nuno Santos
Staff

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

Thanks in advance.

2020-02-24 17-57-06
Vasco Lobo Branco

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

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

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.

2020-02-24 17-57-06
Vasco Lobo Branco

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!

2022-04-06 16-34-49
Diana Selfa

Does the problem was fixed with the new version Vasco?

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP


Version 7.0.0 fixed some issues with table layouts. So if the version 5.0.0 didn't fix it a year ago, the version 7.0.0 probably will.

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