Try using node-phantom-simple (or one of the drivers, like slimerjs). It will look exactly like it would in a browser, even supporting SVG graphs. For images you can even generate data: URLs so you only need to load a single HTML file.
On Thu, May 4, 2017 at 4:47 AM, Deep SiderZ <[email protected]> wrote: > 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 ! > > -- > Job board: http://jobs.nodejs.org/ > New group rules: https://gist.github.com/othiym23/9886289#file- > moderation-policy-md > Old group rules: https://github.com/joyent/node/wiki/Mailing-List- > Posting-Guidelines > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/nodejs/feedc87b-427a-4807-bb31-fe78809f10db%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/feedc87b-427a-4807-bb31-fe78809f10db%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAPJ5V2bY%2B0WXMmEJktH5uOHSauEVw5g4Vc6Js2ZkeL5s%3D0X3qQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
