How to access TOC?
I'm writing a plugin for exporting annotations as JSON but I noticed that some of my annotations are missing the chapter data.
Is there a way to access a book's TOC from the book_id? I'd need to access to TOC either in a subclass of the USBReader class or the Export class.
Follow up question: is there a method on the toc model for getting a chapter title from a page number?
|