-
Notifications
You must be signed in to change notification settings - Fork 543
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
Size to PDF #32
Comments
What size do you mean? Page count or Paper size? I actually have no Idea. I assume you'll get memory problems before you exceed the size limit of phantomjs. I wouldn't create pages that are larger than 40pages. It really depends on how much text & images you have on it and whether you build it on mac or linux. On mac there's a bug that renders text using vectors instead of text elements. So the performance on linux is much better. |
Thanks for the feedback, It is the size of the file. really had a memory problem, most managed to solve and I'm generating more than 300 pages with text and small images. thanks for developing this project! |
Is there anyway to stream the process? I have a very large pdf I'm trying to generate. the html file is 111MB. I set the timeout to 10 minutes :) but it just always dies. Any way to circumvent this?
edit: |
I always end up getting this:
even though I'm nowhere near 10 minutes |
I did a little poking around this morning and was able to get my pdf to generate by changing the follow in node_modules/html-pdf/lib/scripts/pdf_a4_portrait.js
No memory issues. Server skipped happily along. |
@senica I've removed the timeout.
Phantom can write the pdf only to stdout or file. html-pdf uses the latter because there were some bugs on windows. |
What is the maximum size to PDF ?
The text was updated successfully, but these errors were encountered: