s-kh
s-kh
hi,I'm using this module but its not working,its says: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using 'options.phantomPath' I dont know how...
I'm using node.js,i just copy your exampel it say the same thing
``` js var fs = require('fs'); var pdf = require('html-pdf'); app.get('/pdf',function(){ var html = fs.readFileSync('./test.html', 'utf8') var options = { format: 'Letter' }; pdf.create(html, options).toFile('./test.pdf', function(err, res) { if (err)...
I'm using the command but it's not work,this command (npm install html-pdf) is enough to get phantomjs ?