Gem Wicked_pdf - when breaking page repeats the first row of table

Asked

Viewed 80 times

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 disturbing the reading of the second page. How do I not display this first line? (Curriculum Components - Module 1).

inserir a descrição da imagem aqui

1 answer

0

You need to change the display property of the thead tag. Add the code below in the css file that is specific to render 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 tag

<%= wicked_pdf_stylesheet_link_tag 'pdf' -%>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.