[Html2PdfConverter] Html2PDF - content flowing into header

Forge Component
(64)
Published on 17 May by Guilherme Pereira
64 votes
Published on 17 May by Guilherme Pereira

Hi,

I am trying to generate a PDF from a URL which contains Table Records with a large amount of text in one of its columns.

The problem is when the PDF is being generated and that column is flowing onto the next page, the content isn't handling the headers and is flowing over the headers.

I have attached an image to show this.

I have tried various CSS to attempt to fix this including page-break with no success.

Any ideas?

Thank you.


Hi Waqar,


Could you also show us how it is shown on the page before it goes to the converter?
And in what way did you use CSS to attempt to fix it? Did you use classes or did you create a inline style on the column?


Greetings,


Robert

Hi! 

If the row  have the CSS 

page-break-inside: avoid;

It normally solve that problem

Regards

Robert Hantink wrote:

Hi Waqar,


Could you also show us how it is shown on the page before it goes to the converter?
And in what way did you use CSS to attempt to fix it? Did you use classes or did you create a inline style on the column?


Greetings,


Robert

Hi Robert,

The page isn't an issue as the page that goes into the converter is 1 page.


Regarding the CSS we tried using variations of "page-break" - before, inside and after to no avail.  


Thank you,

Waqar

Well I think we need a file from you so we can try and see what is going on. If that is possible.