Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few ways to prevent header overlapping in the second page when using a big table in jsPDF:

  1. Use the setPage() method to create a new page before the table starts so that the header is not overlapping with the table.

  2. Use the addPage() method to add a new page in between the pages with the header and the table.

  3. Use the rect() method to draw a rectangle around the header and table so that they are separated visually.

  4. Use the height() method to set the height of the table to prevent it from overlapping with the header.

  5. Use the table() method to create a table with pagination and headers that are repeated on each page.