{"action":"created","issue":{"url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/3","repository_url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf","labels_url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/3/comments","events_url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/3/events","html_url":"https://github.com/SebastiaanKlippert/go-wkhtmltopdf/issues/3","id":167816070,"number":3,"title":"Regarding ViewportSize","user":{"login":"allochi","id":126279,"avatar_url":"https://avatars.githubusercontent.com/u/126279?v=3","gravatar_id":"","url":"https://api.github.com/users/allochi","html_url":"https://github.com/allochi","followers_url":"https://api.github.com/users/allochi/followers","following_url":"https://api.github.com/users/allochi/following{/other_user}","gists_url":"https://api.github.com/users/allochi/gists{/gist_id}","starred_url":"https://api.github.com/users/allochi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allochi/subscriptions","organizations_url":"https://api.github.com/users/allochi/orgs","repos_url":"https://api.github.com/users/allochi/repos","events_url":"https://api.github.com/users/allochi/events{/privacy}","received_events_url":"https://api.github.com/users/allochi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-27T09:57:23Z","updated_at":"2016-07-27T12:13:25Z","closed_at":"2016-07-27T12:11:54Z","body":"When using `wkhtmltopdf` directly I can set the `--viewport-size` like so:\r\n\r\n```basg\r\n./wkhtmltopdf --viewport-size 1920x1080 -L 0 -R 0 -T 0 -B 0 http://www.google.com sample.pdf\r\n```\r\n\r\nI can use the format `1920x1080`, but not with `go-wkhtmltopdf`, because it expect `uint`, I was able to achieve the required result for now by using \r\n\r\n```go\r\npage.ViewportSize.Set(1920)\r\n```\r\n\r\nbut I think this will come up in the future and it needs to be fixed.\r\n\r\nThanks @SebastiaanKlippert, you package has proven to be quit useful, we are using it now in IDMC http://www.internal-displacement.org, you can list us if you would like to."},"comment":{"url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/comments/235567141","html_url":"https://github.com/SebastiaanKlippert/go-wkhtmltopdf/issues/3#issuecomment-235567141","issue_url":"https://api.github.com/repos/SebastiaanKlippert/go-wkhtmltopdf/issues/3","id":235567141,"user":{"login":"SebastiaanKlippert","id":6223360,"avatar_url":"https://avatars.githubusercontent.com/u/6223360?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastiaanKlippert","html_url":"https://github.com/SebastiaanKlippert","followers_url":"https://api.github.com/users/SebastiaanKlippert/followers","following_url":"https://api.github.com/users/SebastiaanKlippert/following{/other_user}","gists_url":"https://api.github.com/users/SebastiaanKlippert/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastiaanKlippert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastiaanKlippert/subscriptions","organizations_url":"https://api.github.com/users/SebastiaanKlippert/orgs","repos_url":"https://api.github.com/users/SebastiaanKlippert/repos","events_url":"https://api.github.com/users/SebastiaanKlippert/events{/privacy}","received_events_url":"https://api.github.com/users/SebastiaanKlippert/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T12:13:25Z","updated_at":"2016-07-27T12:13:25Z","body":"I have added an internal bool variable for int and float options, so setting the margin to 0 should be possible now.\r\n\r\nThanks again for your feedback and nice to hear you are happy with it."}}
{"actor":{"display_login":"SebastiaanKlippert"}}