Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 453 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 453 Bytes

aws-lambda-wkhtmltopdf

Convert HTML to PDF using Webkit (QtWebKit) on AWS Lambda

Input

{
    "html" : "<!DOCTYPE html><html><body>Hello world</body></html>"
}

Output

{
    "filename": "8rqj9td0pvjf9a4i.pdf"
}

Configuration

  1. Open config.js and set dstBucket variable to name of S3 bucket where you want function to save output PDF files.
  2. Make sure AWS Lambda function has PutObject access to S3 bucket