{"action":"created","issue":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1223","repository_url":"https://api.github.com/repos/GitbookIO/gitbook","labels_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1223/labels{/name}","comments_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1223/comments","events_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1223/events","html_url":"https://github.com/GitbookIO/gitbook/issues/1223","id":147634712,"number":1223,"title":"Conversion to PDF with calibre should show table of content with page numbers","user":{"login":"sudheesh001","id":4545925,"avatar_url":"https://avatars.githubusercontent.com/u/4545925?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheesh001","html_url":"https://github.com/sudheesh001","followers_url":"https://api.github.com/users/sudheesh001/followers","following_url":"https://api.github.com/users/sudheesh001/following{/other_user}","gists_url":"https://api.github.com/users/sudheesh001/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheesh001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheesh001/subscriptions","organizations_url":"https://api.github.com/users/sudheesh001/orgs","repos_url":"https://api.github.com/users/sudheesh001/repos","events_url":"https://api.github.com/users/sudheesh001/events{/privacy}","received_events_url":"https://api.github.com/users/sudheesh001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-12T05:12:58Z","updated_at":"2016-04-26T16:20:34Z","closed_at":null,"body":"The table of contents end up showing the section numbers to the right instead of the page numbers. Having it display the page numbers is generally what's expected.\r\n\r\nI am not sure if this is the right place to post about this, but it'd be nice if there's a method in the `book.json` which would allow the book to be rendered with page numbers in the Table of Contents than the section numbers.\r\n\r\nThis is how the rendered book using `gitbook pdf` looks as of now.\r\n\r\n<img width=\"763\" alt=\"screen shot 2016-04-12 at 10 40 56 am\" src=\"https://cloud.githubusercontent.com/assets/4545925/14450352/3997e96c-009b-11e6-9728-35f81a998213.png\">\r\n\r\nThe book lies at : https://github.com/GameAutomators/eBook-Source\r\n\r\nThank you so much for this amazing tool."},"comment":{"url":"https://api.github.com/repos/GitbookIO/gitbook/issues/comments/214799894","html_url":"https://github.com/GitbookIO/gitbook/issues/1223#issuecomment-214799894","issue_url":"https://api.github.com/repos/GitbookIO/gitbook/issues/1223","id":214799894,"user":{"login":"piranna","id":532414,"avatar_url":"https://avatars.githubusercontent.com/u/532414?v=3","gravatar_id":"","url":"https://api.github.com/users/piranna","html_url":"https://github.com/piranna","followers_url":"https://api.github.com/users/piranna/followers","following_url":"https://api.github.com/users/piranna/following{/other_user}","gists_url":"https://api.github.com/users/piranna/gists{/gist_id}","starred_url":"https://api.github.com/users/piranna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piranna/subscriptions","organizations_url":"https://api.github.com/users/piranna/orgs","repos_url":"https://api.github.com/users/piranna/repos","events_url":"https://api.github.com/users/piranna/events{/privacy}","received_events_url":"https://api.github.com/users/piranna/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T16:20:34Z","updated_at":"2016-04-26T16:20:34Z","body":"Yeah, but besides the proof of concept, I think we should ask Calibre devs\nabout fixing this.\nEl 26/4/2016 6:02 PM, \"Markus Lindenmann\" <notifications@github.com>\nescribió:\n\n> Well I fear calibre has kind of the same problem. I think the reason of\n> putting the TOC at the end is just a hack since they know all the page\n> numbers there (and my interpretation: they are too lazy or it is too\n> complicated to update / insert a TOC at the beginning).\n>\n> What I tried to say: maybe it is possible to take the information from the\n> Calibre generated TOC and use it in the own TOC ... This requires two runs\n> and seems very hacky, but since perfomance is not a problem ... and at\n> least it could kind of work ...\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/GitbookIO/gitbook/issues/1223#issuecomment-214794423>\n>\n"}}