Ask Your Question
1

How to prevent header overlapping in the second page when using a big table in jsPDF?

asked 2023-05-16 12:42:37 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-16 12:49:02 +0000

djk gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-16 12:42:37 +0000

Seen: 9 times

Last updated: May 16 '23