{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/425","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/425/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/425/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/425","id":151104925,"number":425,"title":"Embedding remote images. Permission denied. On Windows.","user":{"login":"JohnLukeBentley","id":18357541,"avatar_url":"https://avatars.githubusercontent.com/u/18357541?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnLukeBentley","html_url":"https://github.com/JohnLukeBentley","followers_url":"https://api.github.com/users/JohnLukeBentley/followers","following_url":"https://api.github.com/users/JohnLukeBentley/following{/other_user}","gists_url":"https://api.github.com/users/JohnLukeBentley/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnLukeBentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnLukeBentley/subscriptions","organizations_url":"https://api.github.com/users/JohnLukeBentley/orgs","repos_url":"https://api.github.com/users/JohnLukeBentley/repos","events_url":"https://api.github.com/users/JohnLukeBentley/events{/privacy}","received_events_url":"https://api.github.com/users/JohnLukeBentley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/labels/improvement","name":"improvement","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"assignees":[{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/18","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/milestones/v1.5.0.alpha.13","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/18/labels","id":1917375,"number":18,"title":"v1.5.0.alpha.13","description":"","creator":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":14,"state":"open","created_at":"2016-08-02T05:19:02Z","updated_at":"2016-08-15T05:37:22Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-04-26T11:05:49Z","updated_at":"2016-08-15T05:49:08Z","closed_at":"2016-08-15T05:37:22Z","body":"I'm trying to get an embedded remote image in my resulting PDF. But I receive a \"permission denied\" error. I'm on Windows 10 Pro.\r\n\r\nIn my source asciidoc I have a remote block image\r\n\r\n    image::http://www.catster.com/wp-content/uploads/2015/06/e7c8cac4a5e9838bfa3c7b1197d8fde6.jpg[height=315, height=315, width=560]\r\n\r\nMy conversion command is something like (In Powershell)\r\n\r\n```powershell\r\nps> asciidoctor-pdf --attribute allow-uri-read --trace .\\AcademicJournalArticleExample.adoc\r\n```\r\n\r\nThe relevant part of the console error output\r\n\r\n    C:/Program Files (x86)/Ruby23/lib/ruby/gems/2.3.0/gems/asciidoctor-pdf-1.5.0.alpha.11/lib/asciidoctor-pdf/temporary_path.rb:5:in `unlink\r\n    ': Permission denied @ unlink_internal - C:/Users/John/AppData/Local/Temp/image-20160426-140-1rng434.jpg (Errno::EACCES)\r\n\r\nA handy link to the relevant code file [temporary_path.rb](https://github.com/asciidoctor/asciidoctor-pdf/blob/master/lib/asciidoctor-pdf/temporary_path.rb).\r\n\r\nApparently that ruby code file is struggling to get permissions to either my Windows directory `C:/Users/John/AppData/Local/Temp`, or the temporary image file located there.\r\n\r\nI have tried running the console as an Administrator.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/239733579","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/425#issuecomment-239733579","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/425","id":239733579,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T05:49:08Z","updated_at":"2016-08-15T05:49:08Z","body":":+1: \r\n\r\nI also filed an issue upstream (https://github.com/prawnpdf/prawn/issues/975) to address the problem we ran into in Prawn. We don't have to wait on that fix since I decided to take another route into the API. However, the fix would allow us to switch back to using the simpler API."}}
{"actor":{"display_login":"mojavelinux"}}