|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,014
Karma: 1787523
Join Date: Jul 2011
Location: Australia
Device: Kobo Touch, Kobo Glo
|
Getting the TOC from an ePub
What I need is the TOC entry with the title and the path for the link. Is there a best way to get this? |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,501
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look at metadata/epub.py that will show you how to get the parsed OPF from an epub easily. IIRC the opf object has a .toc attribute you can use to access the toc.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with ePub 3 TOC | mynock70 | ePub | 4 | 11-20-2012 03:14 PM |
| Multi-level TOC broken in epub->epub conversion | siebert | Conversion | 14 | 03-09-2011 05:38 PM |
| ePub TOC to mobi TOC | edmnddntes | Conversion | 5 | 01-24-2011 02:56 AM |
| Epub to Epub loses TOC | edbro | Calibre | 6 | 10-12-2010 04:24 PM |
| epub TOC | crutledge | ePub | 2 | 02-14-2010 04:57 PM |