{"action":"created","issue":{"url":"https://api.github.com/repos/devongovett/pdfkit/issues/481","repository_url":"https://api.github.com/repos/devongovett/pdfkit","labels_url":"https://api.github.com/repos/devongovett/pdfkit/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/devongovett/pdfkit/issues/481/comments","events_url":"https://api.github.com/repos/devongovett/pdfkit/issues/481/events","html_url":"https://github.com/devongovett/pdfkit/issues/481","id":141424024,"number":481,"title":"Background color?","user":{"login":"olalonde","id":416585,"avatar_url":"https://avatars.githubusercontent.com/u/416585?v=3","gravatar_id":"","url":"https://api.github.com/users/olalonde","html_url":"https://github.com/olalonde","followers_url":"https://api.github.com/users/olalonde/followers","following_url":"https://api.github.com/users/olalonde/following{/other_user}","gists_url":"https://api.github.com/users/olalonde/gists{/gist_id}","starred_url":"https://api.github.com/users/olalonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olalonde/subscriptions","organizations_url":"https://api.github.com/users/olalonde/orgs","repos_url":"https://api.github.com/users/olalonde/repos","events_url":"https://api.github.com/users/olalonde/events{/privacy}","received_events_url":"https://api.github.com/users/olalonde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-16T22:43:14Z","updated_at":"2016-03-17T08:30:50Z","closed_at":null,"body":"Is there any way to set a background color for a page or the entire document? I figured I could do it by drawing a rectangle and filling it with the background color but I can't figure out how to make sure the rectangle covers the whole page (what should be width/height?)."},"comment":{"url":"https://api.github.com/repos/devongovett/pdfkit/issues/comments/197760964","html_url":"https://github.com/devongovett/pdfkit/issues/481#issuecomment-197760964","issue_url":"https://api.github.com/repos/devongovett/pdfkit/issues/481","id":197760964,"user":{"login":"YoannB","id":6215081,"avatar_url":"https://avatars.githubusercontent.com/u/6215081?v=3","gravatar_id":"","url":"https://api.github.com/users/YoannB","html_url":"https://github.com/YoannB","followers_url":"https://api.github.com/users/YoannB/followers","following_url":"https://api.github.com/users/YoannB/following{/other_user}","gists_url":"https://api.github.com/users/YoannB/gists{/gist_id}","starred_url":"https://api.github.com/users/YoannB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoannB/subscriptions","organizations_url":"https://api.github.com/users/YoannB/orgs","repos_url":"https://api.github.com/users/YoannB/repos","events_url":"https://api.github.com/users/YoannB/events{/privacy}","received_events_url":"https://api.github.com/users/YoannB/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T08:30:50Z","updated_at":"2016-03-17T08:30:50Z","body":"Hi !\r\nYes, for me, i draw a rectangle to fill background color.\r\n\r\nJust retrieve object \"page\" on \"doc\" like on demo page (http://pdfkit.org/demo/browser.html) : \r\n`\r\n// create a document and pipe to a blob\r\nvar doc = new PDFDocument(),\r\n    page = doc.page;\r\nconsole.log('maxWidth=',page.width,', maxHeight=',page.height);\r\n...\r\n`"}}