{"action":"created","issue":{"url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/2191","repository_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf","labels_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/2191/labels{/name}","comments_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/2191/comments","events_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/2191/events","html_url":"https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2191","id":56407488,"number":2191,"title":"Different output based on Windows HiDPI scaling","user":{"login":"WillemJann","id":3678597,"avatar_url":"https://avatars.githubusercontent.com/u/3678597?v=3","gravatar_id":"","url":"https://api.github.com/users/WillemJann","html_url":"https://github.com/WillemJann","followers_url":"https://api.github.com/users/WillemJann/followers","following_url":"https://api.github.com/users/WillemJann/following{/other_user}","gists_url":"https://api.github.com/users/WillemJann/gists{/gist_id}","starred_url":"https://api.github.com/users/WillemJann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillemJann/subscriptions","organizations_url":"https://api.github.com/users/WillemJann/orgs","repos_url":"https://api.github.com/users/WillemJann/repos","events_url":"https://api.github.com/users/WillemJann/events{/privacy}","received_events_url":"https://api.github.com/users/WillemJann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-02-03T17:13:59Z","updated_at":"2016-09-15T07:13:33Z","closed_at":null,"body":"I am using wkhtmltopdf 0.12.2.1 (with patched qt) on Windows 8.1 with the following command:\r\n\r\n```\r\nwkhtmltopdf -B 0 -L 0 -R 0 -T 0 -O Landscape --disable-smart-shrinking http://localhost:1922/page.html output.pdf\r\n```\r\n\r\nThe page is styled with the following CSS:\r\n\r\n```css\r\nbody {\r\n    margin: 0;\r\n    padding: 0;\r\n    background-color: #0269da;\r\n    width: 297mm;\r\n    height: 210mm;\r\n}\r\n```\r\nThis produces the following output on my laptop:\r\n\r\n![test-scale-2](https://cloud.githubusercontent.com/assets/3678597/6024953/37e2e68e-abcf-11e4-887a-3ef0bf985b6e.jpg)\r\n\r\nHowever, it is expected that the output PDF would fill the entire page. More research on this bug turned out that the issue is caused by the Windows scaling setting. I am using a laptop with a HiDPI screen and have set the Windows scaling to 200%.\r\n\r\nWhen I change the Windows scaling setting to 100%, suprisingly the correct output is generated:\r\n\r\n![test-scale-1](https://cloud.githubusercontent.com/assets/3678597/6025009/a215fb68-abcf-11e4-82d6-d4f11ef31e49.jpg)\r\n\r\nIt is an unwanted side-effect that the output depends on the scaling setting of Windows. Are there any possibilities to generate the last PDF (expected outcome), even when scaling is set to 200%?"},"comment":{"url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/comments/247253881","html_url":"https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2191#issuecomment-247253881","issue_url":"https://api.github.com/repos/wkhtmltopdf/wkhtmltopdf/issues/2191","id":247253881,"user":{"login":"GitteHubert","id":14296330,"avatar_url":"https://avatars.githubusercontent.com/u/14296330?v=3","gravatar_id":"","url":"https://api.github.com/users/GitteHubert","html_url":"https://github.com/GitteHubert","followers_url":"https://api.github.com/users/GitteHubert/followers","following_url":"https://api.github.com/users/GitteHubert/following{/other_user}","gists_url":"https://api.github.com/users/GitteHubert/gists{/gist_id}","starred_url":"https://api.github.com/users/GitteHubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitteHubert/subscriptions","organizations_url":"https://api.github.com/users/GitteHubert/orgs","repos_url":"https://api.github.com/users/GitteHubert/repos","events_url":"https://api.github.com/users/GitteHubert/events{/privacy}","received_events_url":"https://api.github.com/users/GitteHubert/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T07:13:33Z","updated_at":"2016-09-15T07:13:33Z","body":"Seems to be a duplicate of #1641"}}
{"actor":{"display_login":"GitteHubert"}}