Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

vincekruger/html5-to-pdf-gcloud-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 to PDF Generator on Google Cloud Functions

Using html5-to-pdf and chrome-aws-lambda packages

Getting started

Clone the repository and run to setup your cloud function.

gcloud beta functions deploy generatePdf \
    --trigger-http \
    --runtime nodejs14 \
    --memory 1024MB \
    --region us-west1 \
    --project {projectid}

Usage

POST /generatePdf HTTP/1.1
Content-Type: text/html
Host: {your-project}.cloudfunctions.net
Content-Length: {content-length}

{binary html content}

Configuration

See: https://github.com/peterdemartini/html5-to-pdf

About

HTML5 to PDF Generator on Google Cloud Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published