Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`
```