So I've done a little fiddling around and figured a bit of it out. The offset is defined in the apnx file where it says "pageMap":"(1,a,1)" . The first digit in the parenthesis is the start offset from what little experimenting I did. This can be changed in a text editor but only up to 9. After that is messes it up and no pages appear at all. I think it has something to do with pushing back the binary encoded stuff that comes later in the file which causes it to not work. But as long as you want a offset of only up to nine pages, this works since you're not pushing back the binary stuff by changing only one digit.
If you're creating your page count with Count Pages plugin in Calibre, you'll want to add the offset to the total pages because the offset lowers the total page count. For example if the plugin defines 250 pages and you want an offset of 5 at the beginning of the book (for the table of contents or a foreword or whatever), then manually change the page count to 255. Otherwise the last page of the book would be 245.
|