{"action":"created","issue":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/154","repository_url":"https://api.github.com/repos/marcbachmann/node-html-pdf","labels_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/154/comments","events_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/154/events","html_url":"https://github.com/marcbachmann/node-html-pdf/pull/154","id":164360153,"number":154,"title":"Pull request: add more folio customization","user":{"login":"iptaylortechnical","id":12981251,"avatar_url":"https://avatars.githubusercontent.com/u/12981251?v=3","gravatar_id":"","url":"https://api.github.com/users/iptaylortechnical","html_url":"https://github.com/iptaylortechnical","followers_url":"https://api.github.com/users/iptaylortechnical/followers","following_url":"https://api.github.com/users/iptaylortechnical/following{/other_user}","gists_url":"https://api.github.com/users/iptaylortechnical/gists{/gist_id}","starred_url":"https://api.github.com/users/iptaylortechnical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iptaylortechnical/subscriptions","organizations_url":"https://api.github.com/users/iptaylortechnical/orgs","repos_url":"https://api.github.com/users/iptaylortechnical/repos","events_url":"https://api.github.com/users/iptaylortechnical/events{/privacy}","received_events_url":"https://api.github.com/users/iptaylortechnical/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-07T17:07:44Z","updated_at":"2016-07-07T21:29:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/pulls/154","html_url":"https://github.com/marcbachmann/node-html-pdf/pull/154","diff_url":"https://github.com/marcbachmann/node-html-pdf/pull/154.diff","patch_url":"https://github.com/marcbachmann/node-html-pdf/pull/154.patch"},"body":"Specify some folio behavior in the options JSON object under `options.footer.folio`.\r\n\r\nCurrently, there is no control over how the pages are numbered... If you want to have a Cover page and then 1, 2, 3, etc. or if you want to page normally but have the first page say \"cover\" and then the second say \"table of contents\" etc.\r\n\r\n```\r\n\"footer\": {\r\n    \"folio\": {\r\n        \"start\": 1,\r\n        \"substitute\": [\r\n            \"Cover\",\r\n            \"Table of Contents\"\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\nThis makes the pages start counting on the second page (the first page being 0, aka not showing). It also replaces the folio on page 1 with \"Cover\" and page two with \"Table of Contents.\""},"comment":{"url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/comments/231213012","html_url":"https://github.com/marcbachmann/node-html-pdf/pull/154#issuecomment-231213012","issue_url":"https://api.github.com/repos/marcbachmann/node-html-pdf/issues/154","id":231213012,"user":{"login":"iptaylortechnical","id":12981251,"avatar_url":"https://avatars.githubusercontent.com/u/12981251?v=3","gravatar_id":"","url":"https://api.github.com/users/iptaylortechnical","html_url":"https://github.com/iptaylortechnical","followers_url":"https://api.github.com/users/iptaylortechnical/followers","following_url":"https://api.github.com/users/iptaylortechnical/following{/other_user}","gists_url":"https://api.github.com/users/iptaylortechnical/gists{/gist_id}","starred_url":"https://api.github.com/users/iptaylortechnical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iptaylortechnical/subscriptions","organizations_url":"https://api.github.com/users/iptaylortechnical/orgs","repos_url":"https://api.github.com/users/iptaylortechnical/repos","events_url":"https://api.github.com/users/iptaylortechnical/events{/privacy}","received_events_url":"https://api.github.com/users/iptaylortechnical/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T21:29:29Z","updated_at":"2016-07-07T21:29:29Z","body":"Just so we're on the same page here... this code is only for page numbers. Not for footer content. It's just adding an easier way to override the {{page}} directive. With that in mind, if I wanted to have the first page say \"Cover\" instead of \"1\" for the page number, I would much rather be able to just stick it the config than come up with a whole new footer template.\r\n\r\nUnless I'm missing what you're saying."}}
{"actor":{"display_login":"iptaylortechnical"}}