{"action":"created","issue":{"url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/7","repository_url":"https://api.github.com/repos/gogap/go-wkhtmltox","labels_url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/7/comments","events_url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/7/events","html_url":"https://github.com/gogap/go-wkhtmltox/issues/7","id":390540812,"node_id":"MDU6SXNzdWUzOTA1NDA4MTI=","number":7,"title":"Issue in converting html to pdf","user":{"login":"revathi-murali","id":2732287,"node_id":"MDQ6VXNlcjI3MzIyODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2732287?v=4","gravatar_id":"","url":"https://api.github.com/users/revathi-murali","html_url":"https://github.com/revathi-murali","followers_url":"https://api.github.com/users/revathi-murali/followers","following_url":"https://api.github.com/users/revathi-murali/following{/other_user}","gists_url":"https://api.github.com/users/revathi-murali/gists{/gist_id}","starred_url":"https://api.github.com/users/revathi-murali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revathi-murali/subscriptions","organizations_url":"https://api.github.com/users/revathi-murali/orgs","repos_url":"https://api.github.com/users/revathi-murali/repos","events_url":"https://api.github.com/users/revathi-murali/events{/privacy}","received_events_url":"https://api.github.com/users/revathi-murali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-13T06:49:19Z","updated_at":"2018-12-17T09:32:40Z","closed_at":null,"author_association":"NONE","body":"I am using `go-wkhtmltox` package  as a library instead of  a service.  I currently see issues when I try to convert html to pdf (html to image is working fine).\r\n\r\n**Sample Code**\r\n\r\n```\r\nhtmlToX, err := wkhtmltox.New(conf)\r\nfetcherOpts := wkhtmltox.FetcherOptions{}\r\n\r\nvar convertOpts wkhtmltox.ConvertOptions\r\nconvertOpts = &wkhtmltox.ToPDFOptions{URI: \"https://google.com\"}\r\n\r\nconvData, err := htmlToX.Convert(fetcherOpts, convertOpts)\r\n```\r\n\r\n**Error Details**\r\n\r\n`open /var/folders/yb/xxxx/T/go-wkhtmltox539727929/79b4072e-e3ee-49a0-997d-e86ce49ab687.pdf: no such file or directory.` The error points to [this](https://github.com/gogap/go-wkhtmltox/blob/master/wkhtmltox/wkhtmltox.go#L334) line in the codebase.\r\n\r\n\r\nAny idea on why the error is thrown? or am I missing something?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/comments/447778470","html_url":"https://github.com/gogap/go-wkhtmltox/issues/7#issuecomment-447778470","issue_url":"https://api.github.com/repos/gogap/go-wkhtmltox/issues/7","id":447778470,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzc3ODQ3MA==","user":{"login":"revathi-murali","id":2732287,"node_id":"MDQ6VXNlcjI3MzIyODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2732287?v=4","gravatar_id":"","url":"https://api.github.com/users/revathi-murali","html_url":"https://github.com/revathi-murali","followers_url":"https://api.github.com/users/revathi-murali/followers","following_url":"https://api.github.com/users/revathi-murali/following{/other_user}","gists_url":"https://api.github.com/users/revathi-murali/gists{/gist_id}","starred_url":"https://api.github.com/users/revathi-murali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revathi-murali/subscriptions","organizations_url":"https://api.github.com/users/revathi-murali/orgs","repos_url":"https://api.github.com/users/revathi-murali/repos","events_url":"https://api.github.com/users/revathi-murali/events{/privacy}","received_events_url":"https://api.github.com/users/revathi-murali/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T09:32:40Z","updated_at":"2018-12-17T09:32:40Z","author_association":"NONE","body":"Yeah already modified the code to check the same but no result. I have a question - Is there a way to specify the path of the `wkhtmltopdf` or `wkhtmltoimage` executable to wkhtmltox via conf? (although the path is added to the $PATH)"}}
{"actor":{"display_login":"revathi-murali"}}