Gem Wicked_pdf - page break repeats the first row of the table

0

When you have a table and the records do not fit on a single page, on the new page wicked_pdf repeats the first line by disrupting the second page reading. How do I not display this first line? (Curriculum Components - Module 1).

    
asked by anonymous 16.04.2018 / 17:01

1 answer

0

You need to change the display property of the thead tag. Add the code below into the css file that is specific to rendering the pdf, for example: app / assets / stylesheets / pdf.css

thead {
    display: table-row;
}

Remembering that this file needs to be included in the pdf template through the

<%= wicked_pdf_stylesheet_link_tag 'pdf' -%>
    
24.05.2018 / 03:58