Skip to content

dscottS3/aws-lambda-wkhtmltopdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%