We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Page break in table + repeat table header.

Thread ID:





142899 Feb 25,2019 12:25 PM UTC Jul 10,2019 10:42 AM UTC ASP.NET Core - EJ 2 4
Tags: PDF
Asked On February 25, 2019 12:25 PM UTC

I have added page break style property for a table, but generated PDF has not any effect of these properties. 
With SelectPDF library, Generated PDF has proper page break and repeated table header.

 <style type='text/css'>
            table { page-break-inside:auto }
            tr    { page-break-inside:avoid; page-break-after:auto }
            thead { display: table-header-group }
            tfoot { display: table-footer-group }
            </style >

Replied On February 25, 2019 01:03 PM UTC

I am able to make table rows page break properly with these settings.

WebKitConverterSettings settings = new WebKitConverterSettings
                //Set WebKit path
             //   WebKitPath = "QtBinariesWindows",
                Margin = new Syncfusion.Pdf.Graphics.PdfMargins { Top = 30, Left = 30, Right = 30, Bottom = 30 },
                SplitImages = false,
                EnableRepeatTableHeader = true,
                EnableRepeatTableFooter = true


Surya Kumar [Syncfusion]
Replied On February 26, 2019 09:55 AM UTC

Hi Saurin, 
Thanks for contacting Syncfusion support. 
We are glad to know that you have achievied your requirement. Please refer below links for more information about WebKit HTML converter. 
Please let us know if you need any further assistance on this. 
Surya Kumar 

Somdeb Sinha Ray
Replied On July 9, 2019 10:54 AM UTC

only enablerepeattableheader =true does not repeat table header. Table data and table header written in .html file. anything else i have to do? Please help. 

Prakash Viswanathan [Syncfusion]
Replied On July 10, 2019 10:42 AM UTC

Hi Somdeb, 

Thank you for contacting Syncfusion support.  

HTML to PDF converter internally make use of QtWebKit rendering engine for converting HTML to PDF. WebKit rendering engine will repeat the table header when the table has thead tag and the table gets paginated between the PDF pages. So, please make sure that the table has the thead tag for the table header and the table is paginated between the PDF pages.  
If still you are getting the same issue, kindly share us the input HTML file and code snippet to reproduce it from our end. It will be helpful for us to analyze and assist you further.  

Prakash V 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon