Generate a PDF file on Vercel serverless #6712
Unanswered
janbarasek
asked this question in
Help
Replies: 1 comment
-
One possible solution is to run PHP in Vercel, and then use the MPDF library. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I've been trying for a week to figure out how to host a PDF file generator in a serverless environment. The problem is that new versions of Node no longer support the Chromium kernel, which does not fit into the 50MB limit of the serverless feature.
Example
My original FB post: https://www.facebook.com/janbarasek/posts/8257983997549593 (Czech language)
Steps to Reproduce
Hello,
I've been trying for a week to figure out how to host a PDF file generator in a serverless environment. For example, I need to issue an invoice to our customers.
The problem is that new versions of Node no longer support the Chromium kernel, which does not fit into the 50MB limit of the serverless feature.
I've tried the Puppeteer library, but I'm running into a problem:
The "chrome-aws-lambda" library also does not work because:
Final question:
I was wondering what your experience is with generating PDF files in a serverless environment?
How can I generate PDF files and invoices on Vercel? And if that is not possible, what are the alternatives?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions