Create a PNG or a PDF from an HTML using Puppeteer
To start using this basic script just clone the repo, install the dependencies and thne launch the index.
To install the dependencies:
npm install
To output a PNG file:
node index.js sample.html sample.png
To output a PDF file:
node index.js sample.html sample.pdf
The project contains a sample HTML. Try it with your own.