This is my sandbox demoing how to use lambda and API Gateway to generate a PDF document.
Sample on how to configure API gateway to return binary data.
- Lambda generate base64 code.
- API Gateway converts the base64 back to binary.
Sandbox to test Api gateway, lambda and pdfkit. Api gateway fires up a lambda function that generate a PDF file and returns it back to the rest caller.
JavaScript