You can also try template design & code generator to design your favorite pdf layout and generate some executable code! Features a wysiwyg template designer, pdf viewer, and powerful generation capabilities Create custom pdfs effortlessly in both browser and node.js environments If you are looking for ways to generate pdf documents on the client side or in the browser, we have an article for you Generate pdfs in javascript (browser) with 4 popular methods. The problem with using pdf converter libraries available on npm like pdfkit is that, you gonna have to recreate the page structures again in your html templates to get the desired output
One of the best approach to rendering html and convert to pdf is by using puppeteer on nodejs. Convert html to pdf with handlebars templates, buffers, and streams. Discover how to use a node pdf generator to create pdfs from html with node.js and nutrient document engine
WATCH