{"action":"created","issue":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/68","labels_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/68/comments","events_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/68/events","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/68","id":103491078,"number":68,"title":"Hhtml-pdf error","user":{"login":"nandhacse","id":9796052,"avatar_url":"https://avatars.githubusercontent.com/u/9796052?v=3","gravatar_id":"","url":"https://api.github.com/users/nandhacse","html_url":"https://github.com/nandhacse","followers_url":"https://api.github.com/users/nandhacse/followers","following_url":"https://api.github.com/users/nandhacse/following{/other_user}","gists_url":"https://api.github.com/users/nandhacse/gists{/gist_id}","starred_url":"https://api.github.com/users/nandhacse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandhacse/subscriptions","organizations_url":"https://api.github.com/users/nandhacse/orgs","repos_url":"https://api.github.com/users/nandhacse/repos","events_url":"https://api.github.com/users/nandhacse/events{/privacy}","received_events_url":"https://api.github.com/users/nandhacse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-27T11:48:47Z","updated_at":"2015-09-30T07:01:30Z","closed_at":null,"body":"I'm using this module in my project. It works fine in generating a pdf file. But it responds back with an error that i have mentioned below.\r\n\r\n      [SyntaxError: Unexpected token R].\r\n\r\nI don't know where it comes from... need help"},"comment":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/comments/144309247","html_url":"https://github.com/marcbachmann/node-html-pdf/issues/68#issuecomment-144309247","issue_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/68","id":144309247,"user":{"login":"s-kh","id":13818974,"avatar_url":"https://avatars.githubusercontent.com/u/13818974?v=3","gravatar_id":"","url":"https://api.github.com/users/s-kh","html_url":"https://github.com/s-kh","followers_url":"https://api.github.com/users/s-kh/followers","following_url":"https://api.github.com/users/s-kh/following{/other_user}","gists_url":"https://api.github.com/users/s-kh/gists{/gist_id}","starred_url":"https://api.github.com/users/s-kh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-kh/subscriptions","organizations_url":"https://api.github.com/users/s-kh/orgs","repos_url":"https://api.github.com/users/s-kh/repos","events_url":"https://api.github.com/users/s-kh/events{/privacy}","received_events_url":"https://api.github.com/users/s-kh/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T07:01:30Z","updated_at":"2015-09-30T07:01:30Z","body":"var fs = require('fs');\r\nvar pdf = require('html-pdf');\r\n\r\napp.get('/pdf',function(){\r\n\tvar html = fs.readFileSync('./test.html', 'utf8')\r\n\tvar options = { format: 'Letter' };\r\n\tpdf.create(html, options).toFile('./test.pdf', function(err, res) {\r\n\t  if (err) return console.log(err);\r\n\t  console.log(res); // { filename: '/app/businesscard.pdf' } \r\n\t});\r\n\t\r\n});"}}