Skip to content

coderx31/pdf-generation-puppeteer-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Generation PoC With Puppeteer and Go

Puppeteer CLI

puppeteer cli is a cli wrapper for generating pdfs and take a screenshot with Puppeteer.
To install puppeteer cli globally,

npm install -g puppeteer-cli

For more information Puppeteer-CLI

Mustache

Mustache is a simple, logic-less template engine. due to it's simplicity, I chose it to use in this PoC
For more information Mustache and Mustache Specs
Mustache package used in this PoC

Setup

Step 01:
Install puppeteer globally

Step 02:
Clone the repo

Step 03: install the relevant packages
go mod tidy
go mod vendor

Step 04:
Run the application

go run main.go

About

PoC pdf generation using puppeteer cli and go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published