Thanks, it's working!
Y
ydagana
@ydagana
0
Reputation
2
Posts
654
Profile views
0
Followers
0
Following
Posts made by ydagana
-
Can we use phantomJs 2 with jsreport rendering shortcut (in NodeJs)
I'm trying to use jsreport to generate a pdf using node js on mac, but I'm not sure how to configure it with the jsreport rendering shortcut (like it's used in the code below)
var http = require('http'); var jsreport = require('jsreport'); http.createServer(function (req, res) { jsreport.render("<h1>Hello world</h1>").then(function(out) { out.stream.pipe(res); }).catch(function(e) { res.end(e.message); }); }).listen(1337, '127.0.0.1');