Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ribice/html2pdf_cloud_function
Generate PDFs from Websites using Puppeteer and Google Cloud Functions
https://github.com/ribice/html2pdf_cloud_function
cloud-functions headless pdf puppeteer serverless
Last synced: 3 months ago
JSON representation
Generate PDFs from Websites using Puppeteer and Google Cloud Functions
- Host: GitHub
- URL: https://github.com/ribice/html2pdf_cloud_function
- Owner: ribice
- License: mit
- Created: 2019-07-12T18:01:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T11:49:22.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T05:02:46.285Z (almost 2 years ago)
- Topics: cloud-functions, headless, pdf, puppeteer, serverless
- Language: JavaScript
- Size: 298 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTML2PDF Cloud Function
Serverless HTML to PDF conversions using Google Cloud Functions, and Puppeteer.
## Deploying
```
# 1. Install `gcloud` CLI tool: https://cloud.google.com/sdk/gcloud# 2. Authorize gcloud:
gcloud init
gcloud auth application-default login# 3. Deploy!
./deploy.sh#4 Consume:
The gloud tool will return URL of cloud function. Invoke by it appending to it `?url=YOUR_URL`
```