Improper Page breaks with single table with 5000 rows spanning over 40 pages

I am using FileFormat HTML2PDF converter. My page consists of a single table with over 4000 rows.

The table header is repeated on every page but is not being rendered properly. Please see the attached screenshot.

I have enabled the follwing settings in webkit renderer:

               EnableJavaScript = true,

                EnableRepeatTableFooter = includeHeader,
                EnableRepeatTableHeader = includeHeader,

                SplitTextLines = false,
                SplitImages = false,

                WebKitViewPort = new Size(1200, 0),

                Margin = new PdfMargins { Left = 30, Right = 30 }

Attachment: Downloads_d114a0f5.7z

1 Reply

PV Prakash Viswanathan Syncfusion Team June 29, 2018 12:19 PM UTC

Hi Hiren,  

Thanks for contacting Syncfusion support. 

This behavior may occurs due to the settings mismatch of PDF document and WebKit converter settings. Can you please try converting your HTML to PDF with below sample. We have tried with simple HTML with table, the headers and footers are properly repeated in every page. We have tried with different WebKit settings and different PDF page margins, but it is working fine in our end. Please refer below sample.  


If you need any further assistance on this, kindly follow-up with the Direct-Trac support incident, which you have created for the same issue.  

Regards,  
Prakash V 


Loader.
Up arrow icon