{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/12685","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/12685/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/12685/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/12685/events","html_url":"https://github.com/ariya/phantomjs/issues/12685","id":47020267,"number":12685,"title":"PhantomJS 2: PDF rendering too large, page.zoomFactor doesn't work","user":{"login":"thomasbachem","id":231538,"avatar_url":"https://avatars.githubusercontent.com/u/231538?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasbachem","html_url":"https://github.com/thomasbachem","followers_url":"https://api.github.com/users/thomasbachem/followers","following_url":"https://api.github.com/users/thomasbachem/following{/other_user}","gists_url":"https://api.github.com/users/thomasbachem/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbachem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbachem/subscriptions","organizations_url":"https://api.github.com/users/thomasbachem/orgs","repos_url":"https://api.github.com/users/thomasbachem/repos","events_url":"https://api.github.com/users/thomasbachem/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbachem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ariya/phantomjs/labels/2.0","name":"2.0","color":"52a6e0"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/2.0%20Regression","name":"2.0 Regression","color":"EE3F46"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Bug","name":"Bug","color":"f45d43"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Need%20minimized%20test%20case","name":"Need minimized test case","color":"FBCA04"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/PJS%20core","name":"PJS core","color":"4C8CE6"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Webkit","name":"Webkit","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ariya/phantomjs/milestones/14","html_url":"https://github.com/ariya/phantomjs/milestones/Release%202.1","labels_url":"https://api.github.com/repos/ariya/phantomjs/milestones/14/labels","id":949941,"number":14,"title":"Release 2.1","description":"","creator":{"login":"ariya","id":7288,"avatar_url":"https://avatars.githubusercontent.com/u/7288?v=3","gravatar_id":"","url":"https://api.github.com/users/ariya","html_url":"https://github.com/ariya","followers_url":"https://api.github.com/users/ariya/followers","following_url":"https://api.github.com/users/ariya/following{/other_user}","gists_url":"https://api.github.com/users/ariya/gists{/gist_id}","starred_url":"https://api.github.com/users/ariya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariya/subscriptions","organizations_url":"https://api.github.com/users/ariya/orgs","repos_url":"https://api.github.com/users/ariya/repos","events_url":"https://api.github.com/users/ariya/events{/privacy}","received_events_url":"https://api.github.com/users/ariya/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2015-01-24T21:48:19Z","updated_at":"2015-03-02T06:14:39Z","due_on":null,"closed_at":null},"comments":44,"created_at":"2014-10-28T12:31:44Z","updated_at":"2015-04-23T08:10:20Z","closed_at":null,"body":"I compiled PhantomJS 2 HEAD on OS X 10.9.5 (MacBook Pro Retina) via `brew install phantomjs --HEAD`.\r\n\r\nWhen rendering a PDF via `rasterize.js`, the page contents are rendered much larger than with PhantomJS 1.9, and using the `zoom` argument doesn't change anything at all.\r\n\r\nExperimenting with `paperSize`, the page contents that do usually fit exactly into 210mm (A4) do now need 303mm, so there's a 144% increase in size."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/95485338","html_url":"https://github.com/ariya/phantomjs/issues/12685#issuecomment-95485338","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/12685","id":95485338,"user":{"login":"MarttiR","id":8384868,"avatar_url":"https://avatars.githubusercontent.com/u/8384868?v=3","gravatar_id":"","url":"https://api.github.com/users/MarttiR","html_url":"https://github.com/MarttiR","followers_url":"https://api.github.com/users/MarttiR/followers","following_url":"https://api.github.com/users/MarttiR/following{/other_user}","gists_url":"https://api.github.com/users/MarttiR/gists{/gist_id}","starred_url":"https://api.github.com/users/MarttiR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarttiR/subscriptions","organizations_url":"https://api.github.com/users/MarttiR/orgs","repos_url":"https://api.github.com/users/MarttiR/repos","events_url":"https://api.github.com/users/MarttiR/events{/privacy}","received_events_url":"https://api.github.com/users/MarttiR/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T08:10:20Z","updated_at":"2015-04-23T08:10:20Z","body":"This not very elegant solution worked for me: pulled 1st1/master@de90d0712f20dd7a68eb5ac5b302e535ced5a7f4 onto release 2.0 and replaced the hardcoded 72dpi values with hardcoded 96dpi values in the function stringToPointSize()."}}