General developer forum

NodeJs - Data export to PDF/DOCX

 
Picture of Alexis Ablain
NodeJs - Data export to PDF/DOCX
 

Hi everyone,


I'm trying to export data to PDF / DOCX files. At present I use a HTML/CSS template that I fill with my data with ejs package. Then when this template is ready I use Libre Office (with soffice command in headless mode) to export it to PDF or DOCX format. It works but the result is ugly ...

I would like to be able to have a beautiful result. I want to put pictures, tables, colorized texts in the output format.


Do you have an idea on how to achieve this ? It can be a library (one for PDF and one for DOCX or better, juste one for both) or a program that I can exec from my nodejs app. Or it can also be a solution in another language than javascript.


Thank you for your help !

 
Average of ratings: -
Picture of Alexis Ablain
Re: NodeJs - Data export to PDF/DOCX
 

Up ?

 
Average of ratings: -