covert-html-pdf-js Instalation yarn add covert-html-pdf-js or npm i v How To Use const { convertHtmlToPdf } = require('covert-html-pdf-js'); // Your path html // Your output name file convertHtmlToPdf('./invoice2.html', 'sample')