Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/christianrich/generate-pdf-puppeteer

Generate a PDF with Puppeteer, Handlebars and Express
https://github.com/christianrich/generate-pdf-puppeteer

docker docker-compose express handlebars node-js pdf-generation puppeteer

Last synced: 7 days ago
JSON representation

Generate a PDF with Puppeteer, Handlebars and Express

Awesome Lists containing this project

README

        

# PDF generation from HTML using Puppeteer and Handlebars

### Master branch using Puppeteer

```
yarn
yarn dev
```

### Puppeteer-core branch using a Dockerized version of headless Chrome

```
git checkout puppeteer-core
docker pull browserless/chrome
```

Start container:
```
docker run -d -p 4444:3000 browserless/chrome
```

Or use Docker compose:
```
docker-compose up -d
```

```
yarn
yarn dev
```

Resources:
https://hub.docker.com/r/browserless/chrome/