question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jspdf table header overlapping issue on second page

See original GitHub issue

Hi

I have issue with overlapping issue in pdf table

          var doc = new jsPDF('l', 'px', 'a4');
            doc.setFont("helvetica");
            doc.setFontSize(10);
            
            doc.table(10, 5, generateData, headers, { autoSize: true,padding:10});
            doc.save(fileName);

Untitled

Please help me

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
121371commented, Jul 4, 2019

After save line try to adjust the margins like below

pdf.save(reportName); }, { top: 32, bottom: 10, left: 10, width: 200 } );

0reactions
HackbrettXXXcommented, Dec 7, 2020

Not that I know of. Seems like a bug to me. @iljayas could you investigate why this happens?

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsPDF Big table, headers overlap in second page
The result is a PDF with the image at the top and the table next. The problem comes when it enters the second...
Read more >
jspdf table header overlapping issue on second page #2519
Hi I have issue with overlapping issue in pdf table var doc = new jsPDF('l', 'px', 'a4'); doc.setFont("helvetica"); doc.
Read more >
Solution for overlapping content when generating PDFs with ...
The issue is that if the content runs onto the next page, the table headers (<thead>) and footers (<tfoot>) are repeating and overlapping...
Read more >
[Html2PdfConverter] Overlapping column header and content ...
Hi All,. if on subsequent pages, like page 2, 3 etc. the heading of a grid is duplicated to the next page, and...
Read more >
How to Convert HTML Tables into Beautiful PDFs
We get to keep our nice table styles. The table column headers and table footer are repeated on every page. The table rows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found