I am using this to convert the html to PDF.The conversions are really good.But the problem is to add header and footer in the PDF pages.In the options if i add the header text i
Created a simple NPM module for this purpose that can add arbitrary HTML and CSS to an existing PDF.
const pdf = require('add-html-to-pdf'); var options = { input: 'sample.pdf', output: 'done.pdf', html: "Author: Marc Bachmann", } pdf.insertHTMLInPDF(options);