title: Creating PDF from html template in node js
body: <p>I have a requirement that I need to create a PDF. For me the best way is to do it render html template and create a PDF with any third party lib. I have come across the solution which render HTML with ejs and create pdf with <a href="https://www.npmjs.com/package/html-pdf" rel="nofollow noreferrer">html-pdf</a>. It works fine though but I had a problem with a page break.</p>
  <p>There is a popular module <a href="https://www.npmjs.com/package/pdfkit" rel="nofollow noreferrer">pdfkit</a>. But it uses it own concept and procedure to render pdf. For node it does not render html file but for python it does render html template.</p>
  <p>Please tell me how can i render html template to pdf using pdfKit and also what is the best way to render html and convert to pdf ?</p>
  <p>Thanks</p>