Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barchart/aws-lambda-pdf-generator
Serverless application that converts HTML documents to PDF files
https://github.com/barchart/aws-lambda-pdf-generator
api-gateway aws-lambda barchart chromium html-to-pdf pdf pdf-generator public-repository puppeteer serverless
Last synced: 3 months ago
JSON representation
Serverless application that converts HTML documents to PDF files
- Host: GitHub
- URL: https://github.com/barchart/aws-lambda-pdf-generator
- Owner: barchart
- License: other
- Created: 2020-07-09T15:30:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T01:05:48.000Z (11 months ago)
- Last Synced: 2024-03-07T01:48:26.567Z (11 months ago)
- Topics: api-gateway, aws-lambda, barchart, chromium, html-to-pdf, pdf, pdf-generator, public-repository, puppeteer, serverless
- Language: JavaScript
- Homepage:
- Size: 779 KB
- Stars: 9
- Watchers: 16
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @barchart/aws-lambda-pdf-generator
[![AWS CodeBuild](https://codebuild.us-east-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiTmtsZEw3M2l3cktxd3crQTJpMVVRbEUzU1dOMFBodFU0MlhaNUFZaC9kVzBIN1FYUXVVZFFUK29vcU5tazJyckNtVFFxL3BoSEdYMEk3V3dUOEhNUFhNPSIsIml2UGFyYW1ldGVyU3BlYyI6Ik84YnJJU1NUZDMvR3VLaXYiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)](https://github.com/barchart/aws-lambda-pdf-generator)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)**Generate PDF files from HTML documents.**
_Simply ```POST``` an HTML document to a web service and receive an ```application/pdf``` document in response._
### Implementation
* The [Serverless](https://www.serverless.com/) framework creates a web service using [AWS API Gateway](https://aws.amazon.com/api-gateway/) and [AWS Lambda](https://aws.amazon.com/lambda/).
* The web service uses [Puppeteer](https://github.com/puppeteer/puppeteer) and [Chromium](https://www.chromium.org/) to render an HTML document as a PDF file.### Documentation
Complete documentation for installation and operation can be found [here](https://barchart.github.io/aws-lambda-pdf-generator/#/).
### Technical Notes
**ARM Architecture (2023/08/31, v3.0.0)**
> It would be nice to use ARM architecture for AWS Lambda functions (and use Apple silicon locally). However, the [`@sparticuz/chromium`](https://github.com/Sparticuz/chromium) project has not yet added support. See the comments [here](https://github.com/Sparticuz/chromium#running-locally--headlessheadful-mode).
### License
This software is provided under the MIT license.