- Clone this repository,
- open a terminal inside
html_to_pdf/
and runnpm install
, - place your
index.html
file and others in a folderNAMEME/
, - place
NAMEME/
in one of the folders insidedata/
, - reuse terminal inside
html_to_pdf/
and runnode index.js
, and - check out your PDFs inside
pdfs/
!
- If your PDFs does not look correct, use
<style>...</style>
tags inside yourindex.html
file instead of external.css
files for styling. - Add
html { -webkit-print-color-adjust: exact; }
inside your<style>...</style>
tags for better colors!