This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Makes a POST request to a Lambda function through an API Gateway | |
* which encapsulates a call to wkhtmltopdf, rendering an HTML | |
* document as a PDF file and returning a signed URL to the | |
* file in an S3 bucket. | |
* | |
* The POST can contain the following parameters: | |
* body - A complete HTML5 document to be rendered in PDF (required) | |
* header - A complete HTML5 document to be rendered in the header of every page (optional) |