{"action":"created","issue":{"url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/6","labels_url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/6/comments","events_url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/6/events","html_url":"https://github.com/simonstewart/swagger-to-PDF/issues/6","id":129915294,"number":6,"title":"Windows","user":{"login":"kpakur","id":4456120,"avatar_url":"https://avatars.githubusercontent.com/u/4456120?v=3","gravatar_id":"","url":"https://api.github.com/users/kpakur","html_url":"https://github.com/kpakur","followers_url":"https://api.github.com/users/kpakur/followers","following_url":"https://api.github.com/users/kpakur/following{/other_user}","gists_url":"https://api.github.com/users/kpakur/gists{/gist_id}","starred_url":"https://api.github.com/users/kpakur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpakur/subscriptions","organizations_url":"https://api.github.com/users/kpakur/orgs","repos_url":"https://api.github.com/users/kpakur/repos","events_url":"https://api.github.com/users/kpakur/events{/privacy}","received_events_url":"https://api.github.com/users/kpakur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-29T23:58:19Z","updated_at":"2016-02-01T15:40:35Z","closed_at":null,"body":"Hi,\r\n\r\nI had issues to get this working on windows. What finally helped was a quick fix inside phantom-script.js to add \"file://\" to the skeleton.html path.\r\nfrom \r\npage.open(page.libraryPath + \"/skeleton.html\", function (status) \r\nto\r\npage.open(\"file://\" + page.libraryPath + \"/skeleton.html\", function (status) \r\n\r\nNaturally the best would be to make this fix slightly better to check the platform and then add the \"file://\" prefix etc., but I just wanted to try it out on windows and this quick change allowed me to get the pdf created."},"comment":{"url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/comments/178030020","html_url":"https://github.com/simonstewart/swagger-to-PDF/issues/6#issuecomment-178030020","issue_url":"https://api.github.com/repos/simonstewart/swagger-to-PDF/issues/6","id":178030020,"user":{"login":"kampak1111","id":17003856,"avatar_url":"https://avatars.githubusercontent.com/u/17003856?v=3","gravatar_id":"","url":"https://api.github.com/users/kampak1111","html_url":"https://github.com/kampak1111","followers_url":"https://api.github.com/users/kampak1111/followers","following_url":"https://api.github.com/users/kampak1111/following{/other_user}","gists_url":"https://api.github.com/users/kampak1111/gists{/gist_id}","starred_url":"https://api.github.com/users/kampak1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kampak1111/subscriptions","organizations_url":"https://api.github.com/users/kampak1111/orgs","repos_url":"https://api.github.com/users/kampak1111/repos","events_url":"https://api.github.com/users/kampak1111/events{/privacy}","received_events_url":"https://api.github.com/users/kampak1111/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T15:40:35Z","updated_at":"2016-02-01T15:40:35Z","body":"Hi,\r\n\r\nI put in a pull request with some other fixes. \r\n\r\nAnyway I just realised that the issue I mentioned is in fact in phantomjs-pdf in lib/phantom-script.js, line 20. So appologies and I will raise it with phantomjs-pdf team then.\r\n\r\nJust in case someone had the same and was getting the test.html file fine but empty output.pdf on windows then changing the line may be a hotfix to get this working.\r\n\r\nK."}}