Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem about a large number of pages are processed #135

Open
luo-geng opened this issue Jul 24, 2018 · 6 comments
Open

problem about a large number of pages are processed #135

luo-geng opened this issue Jul 24, 2018 · 6 comments

Comments

@luo-geng
Copy link

When a large number of pages are processed, the output is empty. I tried to intercept part of elemnet printing, and it turned out to be normal.

so, i wanna kown how big date html2pdf deal with

@luo-geng
Copy link
Author

44p fail
2p success

@thejoshcrawford
Copy link

I was noticing this same behavior.

@talkshowhost
Copy link

I posted an issue that might me related to this one #128

@Ljuka
Copy link

Ljuka commented Aug 28, 2018

I think the limit is 15 pages. If I try to insert 16th page it crashes. Also, content doesn't matter because even if I putted on each page one sentence or fill all pages it behaves same (only white pages appears).
This is example of options I am using:

var opt = {
                margin:       0,
                filename:     'myfile.pdf',
                image:        { type: 'jpeg', quality: 0.98 },
                html2canvas:  { scale: 2 },
                jsPDF:        { unit: 'in', format: 'a4', orientation: 'portrait' }
                };

@eKoopmans can you tell us why this is happening and is there any solution for this? 😕

@Greensahil
Copy link

I have 21 pages and it is working fine for me. One thing I have realized is that if you want more pages the orientation has to be in portrait and scale must be set to 1.

@Ljuka
Copy link

Ljuka commented Sep 17, 2018

@Greensahil you are right but if I set scale to 1 I get this error message:
Uncaught (in promise) Error: Supplied data is not a JPEG
But when I set it to something bigger than 1 (for example 1.1) it works.
Also, putting bigger numbers for scale works on less pages, so 1.1 will work on 15-20 but it will not work on 100 pages, which is still not good... Have u tried with 100 pages and can u try it and see if some solution will pop out to u?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants