Skip to content

Prasengupta/weasyprint_for_awslambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supporting WeasyPrint in AWS Lambda

WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.

The above source code works in windows machines but this library will not work in AWS lambda because of Operating system compatibility. So we have leveraged the library to support in AWS Lambda including few other related files from centOS and generated a working library for AWS lambda.

How it works in AWS Lambda ?

Step 1: Download the zip file from this repository.
Step 2: Include your main handler file in the folder and zip it, upload the zip folder to aws lambda. Make sure that the runtime is set as Python 2.7

NOTE: This package doesn't work in windows operating system as it is a lambda package where the lambada runs on centOS

About

Supporting WeasyPrint in AWS Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages