View Single Post
Old 05-01-2022, 05:58 PM   #1
acarter5
Junior Member
acarter5 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2022
Device: onyx boox note air
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?
acarter5 is offline   Reply With Quote