Search code examples
javascriptpdfmake

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.


Solution

  • By setting the headerRows, it will repeat automatically.

    Like

    table: {
        headerRows: 1,
        body: [
            ...
        ]
    }