-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ReactPDF.renderToStream Not working when files are larger than 13MB #2055
Comments
The function does not produce any errors. It just hangs with no output. |
Yes, I am facing the same issue with generating pdf with lots of images I am using Node v14.17.5 on Windows |
Can you try running on a Docker container with platform |
Tested on platform=linux/amd64. Works fine on Linux. Seems to be an issue on Apple M1 (and Windows, regarding previous comment). |
@airidasj I think it's may be due to some dependency is not supports M1 (arm64) yet. We got issues with node-canvas not working on M1. |
How can I replicate this? |
Just need to render lots of images like 10-12 of 1MB size or more |
I gave this a try here. Rendered way more than what you suggested. Final file is +100mb, and it works fine and rendered pretty fast. Error must be somewhere else in your document (for which I'll need a way to reproduce it). Maybe it's fixed in latest versions PR has the document for a web app, but I tested rendering it with |
Describe the bug
RenderToStream / renderToString / renderToString does not Work with bigger fileSize.
To Reproduce
In our case we make an invoice for products and we include more images of the product (4) to a single pdf page. When we render 2-3 products, pdf renders with no issues.
When we add 4-10 products, and the image files increase PDF file size, the renderToStream function stops, and never produces a result.
We can render the pdf on the browser successfully, no matter the filezsize. Doesnt work in Node API.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: