I want to generate a report(i.e pdf or any format that can be print) from the data in system. Its like i need to generate weekly report. Format of report will be the same but data will be change with time. Is there any way to perform this task in Node JS ? I m using Mongo DB. And React JS in front end. Thank you so much.
3 Answers
Hi you can use this npm package to convert your data into pdf format. Just by giving id of the tag that contains your data.
You can download it in pdf format. and print it as well.
Comments
You can use jsPDF as it is a big library having more than 18k github star. if you want to make report from frontend only
Comments
If you want to generate the HTML based pdf then html-pdf lib. It is the best lib to convert your HTML to pdf. I have already use the lib in my many projects to generate the pdf reports.