Render an .ejs File to PDF

Using JavaScript

Shivam Verma

--

Google Images

Rendering an EJS file to a PDF using Node.js and EJS can be accomplished using the html-pdf package. This package allows for the conversion of HTML files, including EJS templates, to PDF format.

To get started, the first step is to install the html-pdf package by running npm install html-pdf in the command line. Once installed, the necessary modules can be…

--

--

Shivam Verma

SWE @Microsoft || Building @shop2app || prev intern @daveai, @plunes & @rivi || Interview Preparation with me at https://topmate.io/shivam_verma10