Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pdfMake table header not repeated on page break

Can I force somehow the table header repeating on each page in pdfMake, when I have a big table, that only fits on multiple pages.

like image 805
István Avatar asked Nov 30 '15 14:11

István


People also ask

Why are my headers not repeating?

Make sure that your long table is actually a single table. If it is not, then the header row won't repeat because the table doesn't really extend beyond a single page. The easiest way to determine if you are working with a single table vs. multiple tables is to click somewhere within the table.

What is a recurring table header?

Header row repetition means that the header row(s) of a table will repeat at the top of each page on which the table spans.


1 Answers

By setting the headerRows, it will repeat automatically.

Like

table: {
    headerRows: 1,
    body: [
        ...
    ]
}
like image 183
István Avatar answered Sep 20 '22 15:09

István