{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/2089","repository_url":"https://api.github.com/repos/GoogleChrome/puppeteer","labels_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/2089/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/2089/comments","events_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/2089/events","html_url":"https://github.com/GoogleChrome/puppeteer/issues/2089","id":299812454,"number":2089,"title":"Ability to prevent header/footer on certain pages","user":{"login":"mjschranz","id":899557,"avatar_url":"https://avatars3.githubusercontent.com/u/899557?v=4","gravatar_id":"","url":"https://api.github.com/users/mjschranz","html_url":"https://github.com/mjschranz","followers_url":"https://api.github.com/users/mjschranz/followers","following_url":"https://api.github.com/users/mjschranz/following{/other_user}","gists_url":"https://api.github.com/users/mjschranz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjschranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjschranz/subscriptions","organizations_url":"https://api.github.com/users/mjschranz/orgs","repos_url":"https://api.github.com/users/mjschranz/repos","events_url":"https://api.github.com/users/mjschranz/events{/privacy}","received_events_url":"https://api.github.com/users/mjschranz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-02-23T18:48:46Z","updated_at":"2018-04-10T15:31:45Z","closed_at":"2018-04-07T03:39:22Z","author_association":"NONE","body":"This is simply a feature request (or if it's available already, a question on how I can accomplish this).\r\n\r\nI've gotten the header and footer templates working but I'd like to prevent them from displaying on a specific page (in this case, I have a cover page I use specifically for the PDF and having them there doesn't work with the design).\r\n\r\nIs this possible or could it be added as a feature?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/comments/380144134","html_url":"https://github.com/GoogleChrome/puppeteer/issues/2089#issuecomment-380144134","issue_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/2089","id":380144134,"user":{"login":"mjschranz","id":899557,"avatar_url":"https://avatars3.githubusercontent.com/u/899557?v=4","gravatar_id":"","url":"https://api.github.com/users/mjschranz","html_url":"https://github.com/mjschranz","followers_url":"https://api.github.com/users/mjschranz/followers","following_url":"https://api.github.com/users/mjschranz/following{/other_user}","gists_url":"https://api.github.com/users/mjschranz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjschranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjschranz/subscriptions","organizations_url":"https://api.github.com/users/mjschranz/orgs","repos_url":"https://api.github.com/users/mjschranz/repos","events_url":"https://api.github.com/users/mjschranz/events{/privacy}","received_events_url":"https://api.github.com/users/mjschranz/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T15:31:45Z","updated_at":"2018-04-10T15:31:45Z","author_association":"NONE","body":"@TravisTX I basically would run code like the following to hide/show various HTML of the page I was making a PDF out of. For our use case, we explicitly always broke for specific sections/areas which made it easier for us.\r\n\r\n```javascript\r\n        await finalPage.evaluate(() => {\r\n          document.querySelectorAll('.pdf-body').forEach((elem) => {\r\n            elem.style.display = 'none';\r\n          });\r\n          document.getElementById('summary-block').style.display = 'none';\r\n          document.getElementById('report-cover').style.display = 'block';\r\n          document.getElementById('d-page').style.display = 'none';\r\n        });\r\n```"}}
{"actor":{"display_login":"mjschranz"}}