1.1.0 • Published 1 year ago

@sladg/pdf-lambda v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

PdfLambda

PdfLambda is a simple AWS Lambda function that converts HTML to PDF using wkhtmltopdf.

Moreover, it's possible to use it for merging multiple PDFs into one.

Usage

Very simple and straight forward npx --package @sladg/pdf-lambda cli deploy. Pass --help in the end for all options and configuration.

In case you want to clean it up, use npx --package @sladg/pdf-lambda cli remove.

Command will output "Rest API URL" that you can use to make requests.

Endpoints

GET / - simple check to see options and configuration.

POST /pdf/merge-multiple - merge multiple PDFs into one

POST /pdf/convert-from-html - convert HTML to PDF

Make sure to set Accept: application/pdf in request headers.

Notes

Does not support var(--color) CSS properties due to wkhtmltopdf limitations.

Generally the CSS and HTML should be as simple as possible, it's not as powerful as Chrome or Firefox, but it's way faster and smaller, resulting in small & efficient solution.

1.1.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.0

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.0.1

1 year ago