We need a function created on AWS Lambda that would convert HTML into PDF.
IMPORTANT! It has to use (headless) google chrome as the converting engine, not dompdf, wkhtmltopdf or similar library.
The function has to accept HTML as input, and output PDF, either:
- Return base64 encode of the PDF file (or any other encoding that is easy to transport and decode);
- or, Save the PDF in the S3 bucket and return the URL to it.
The function has to be fairly fast (<3 s for simple 1-2 page PDFs - I can provide some HTML/PDFs to test with).