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.

when i want html2pdf,when html is short it's work,but when html is too long it do nothing

See original GitHub issue

What I saw when i want html2pdf,when html is short it’s work,but when html is too long it do nothing

this is my code

var pdf = new jsPDF('p', 'pt', 'a4');
             var options = {
                 pagesplit : true,
                 background : "#fff"
             };
             pdf.addHTML(document.getElementById("report_main"), options, function()
             {
                 pdf.save("report.pdf");
             });

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Uzlopakcommented, Mar 24, 2017

Please provide a test case! Are those 500 tr’s and each 4 td’s empty? Should i now use my time to create a fitting test case?

Fork as recommended http://jsbin.com/rilace/edit?html,js,output

Thank you!

0reactions
tosakarincommented, Mar 24, 2017

@arasabbasi
just like a table have 500 tr and every tr have 4 td

Read more comments on GitHub >

github_iconTop Results From Across the Web

when i want html2pdf,when html is short it's work,but ... - GitHub
What I saw when i want html2pdf,when html is short it's work,but when html is too long it do nothing this is my...
Read more >
HTML2PDF is not working propertly with this code in PHP
I tried to generate a PDF with this code but is displaying this error when try to generate it. The page cannot be...
Read more >
html2pdf.js | Client-side HTML-to-PDF rendering using pure JS.
Anything larger will fail to render. This is a limitation of HTML5 itself, and results in large PDFs rendering completely blank in html2pdf.js....
Read more >
Knit to pdf with css/html or convert html file to pdf file.
So I created a md file, a css file, a Rmd file and a R file. All saved in the same directory. Scenario...
Read more >
Automatically save a form page as PDF and insert into ...
I've long wondered if there's a solution that's shareable where I could click a button and have a form page automatically saved in...
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