{"action":"created","issue":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/29","labels_url":"https://api.github.com/repos/tojocky/node-printer/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/tojocky/node-printer/issues/29/comments","events_url":"https://api.github.com/repos/tojocky/node-printer/issues/29/events","html_url":"https://github.com/tojocky/node-printer/issues/29","id":47990006,"number":29,"title":"Print PDF from Windows","user":{"login":"rclai","id":1316261,"avatar_url":"https://avatars.githubusercontent.com/u/1316261?v=3","gravatar_id":"","url":"https://api.github.com/users/rclai","html_url":"https://github.com/rclai","followers_url":"https://api.github.com/users/rclai/followers","following_url":"https://api.github.com/users/rclai/following{/other_user}","gists_url":"https://api.github.com/users/rclai/gists{/gist_id}","starred_url":"https://api.github.com/users/rclai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclai/subscriptions","organizations_url":"https://api.github.com/users/rclai/orgs","repos_url":"https://api.github.com/users/rclai/repos","events_url":"https://api.github.com/users/rclai/events{/privacy}","received_events_url":"https://api.github.com/users/rclai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tojocky/node-printer/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/tojocky/node-printer/labels/win32","name":"win32","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/tojocky/node-printer/milestones/4","html_url":"https://github.com/tojocky/node-printer/milestones/0.1.2","labels_url":"https://api.github.com/repos/tojocky/node-printer/milestones/4/labels","id":1009218,"number":4,"title":"0.1.2","description":"","creator":{"login":"tojocky","id":598809,"avatar_url":"https://avatars.githubusercontent.com/u/598809?v=3","gravatar_id":"","url":"https://api.github.com/users/tojocky","html_url":"https://github.com/tojocky","followers_url":"https://api.github.com/users/tojocky/followers","following_url":"https://api.github.com/users/tojocky/following{/other_user}","gists_url":"https://api.github.com/users/tojocky/gists{/gist_id}","starred_url":"https://api.github.com/users/tojocky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tojocky/subscriptions","organizations_url":"https://api.github.com/users/tojocky/orgs","repos_url":"https://api.github.com/users/tojocky/repos","events_url":"https://api.github.com/users/tojocky/events{/privacy}","received_events_url":"https://api.github.com/users/tojocky/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2015-03-06T13:29:53Z","updated_at":"2015-03-27T02:44:00Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2014-11-06T17:29:03Z","updated_at":"2015-03-27T14:36:40Z","closed_at":null,"body":"Here's the link to the PDF:\r\n\r\nhttps://drive.google.com/file/d/0B4xBPiAxQ7h5STZPWjlGREJKd0k/view?usp=sharing\r\n\r\nWe used MS Word to create a PDF and that printed fine. The above PDF was generated using a PHP library called [FPDF](http://www.fpdf.org/): \r\n\r\nI'm using this code to print it. When we attempt to print the above PDF, the printer will get the data, but it will not print it.\r\n\r\n```\r\nprinter.printDirect({\r\n\tdata:  fs.readFileSync('./doc.pdf')\r\n\t, printer: 'Ricoh Aficio MP C2500 PCL5c' // printer name, that does exist\r\n\t, type: 'RAW'\r\n\t, success: function (jobID)  {\r\n\t\tconsole.log(\"sent to printer with ID: \" + jobID);\r\n\t}\r\n\t, error: function (err) {\r\n\t\tthrow new Error(err);\r\n\t}\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/tojocky/node-printer/issues/comments/86960586","html_url":"https://github.com/tojocky/node-printer/issues/29#issuecomment-86960586","issue_url":"https://api.github.com/repos/tojocky/node-printer/issues/29","id":86960586,"user":{"login":"alexeyst","id":10452802,"avatar_url":"https://avatars.githubusercontent.com/u/10452802?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyst","html_url":"https://github.com/alexeyst","followers_url":"https://api.github.com/users/alexeyst/followers","following_url":"https://api.github.com/users/alexeyst/following{/other_user}","gists_url":"https://api.github.com/users/alexeyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyst/subscriptions","organizations_url":"https://api.github.com/users/alexeyst/orgs","repos_url":"https://api.github.com/users/alexeyst/repos","events_url":"https://api.github.com/users/alexeyst/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyst/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T14:36:39Z","updated_at":"2015-03-27T14:36:39Z","body":"Nice work @tojocky! Have you already tried to actually print a PDF via a combination of node-pdfium and node-printer and possibly got a working example? Also, is there a way to pass a `dpi` value for rendering?\r\n\r\nAlso, on a side note, I posted a feature request to NW repo too and it was confirmed that this will be supported in NW 0.13 or earlier, too: https://github.com/nwjs/nw.js/issues/3240."}}