Incorrect EPUB spine: TOC is missing
See original GitHub issueI am getting this exception, which seems to be related to a bad spine. After looking at your source code, I see that this exception is thrown when STRICTEPUB
is set.
Is there a way to set this or do I need to compile the library myself?
Spine for reference:
<manifest>
<item href="page-template.xpgt" id="pt" media-type="application/vnd.adobe.page-template+xml"/>
<item href="stei_9780140177381_oeb_css_r1.css" id="style" media-type="text/css"/>
<item href="stei_9780140177381_msr_cvi_r1.jpg" id="coverimagestandard" media-type="image/jpeg"/>
<item href="stei_9780140177381_msr_cvt_r1.jpg" id="thumbimagestandard" media-type="image/jpeg"/>
<item href="stei_9780140177381_msr_ppl_r1.jpg" id="PPCthumbnailimage" media-type="image/jpeg"/>
<item href="stei_9780140177381_oeb_cover_r1.html" id="cover" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_toc_r1.html" id="toc" media-type="application/xhtml+xml"/>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
<item href="stei_9780140177381_oeb_fm1_r1.html" id="fm1" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_fm2_r1.html" id="fm2" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_tp_r1.html" id="tp" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_ded_r1.html" id="ded" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_fm3_r1.html" id="fm3" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c01_r1.html" id="c01" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c02_r1.html" id="c02" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c03_r1.html" id="c03" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c04_r1.html" id="c04" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c05_r1.html" id="c05" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c06_r1.html" id="c06" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c07_r1.html" id="c07" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c08_r1.html" id="c08" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c09_r1.html" id="c09" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c10_r1.html" id="c10" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c11_r1.html" id="c11" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c12_r1.html" id="c12" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c13_r1.html" id="c13" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c14_r1.html" id="c14" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c15_r1.html" id="c15" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c16_r1.html" id="c16" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c17_r1.html" id="c17" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c18_r1.html" id="c18" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c19_r1.html" id="c19" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c20_r1.html" id="c20" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c21_r1.html" id="c21" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c22_r1.html" id="c22" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c23_r1.html" id="c23" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c24_r1.html" id="c24" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c25_r1.html" id="c25" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c26_r1.html" id="c26" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c27_r1.html" id="c27" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c28_r1.html" id="c28" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c29_r1.html" id="c29" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c30_r1.html" id="c30" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c31_r1.html" id="c31" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_c32_r1.html" id="c32" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_bm1_r1.html" id="bm1" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_ftn_r1.html" id="ftn" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_cop_r1.html" id="cop" media-type="application/xhtml+xml"/>
<item href="stei_9780140177381_oeb_001_r1.jpg" id="stei_9780140177381_oeb_001_r1" media-type="image/jpeg"/>
<item href="stei_9780140177381_oeb_002_r1.jpg" id="stei_9780140177381_oeb_002_r1" media-type="image/jpeg"/>
<item href="stei_9780140177381_oeb_003_r1.jpg" id="stei_9780140177381_oeb_003_r1" media-type="image/jpeg"/>
<item href="stei_9780140177381_oeb_004_r1.jpg" id="stei_9780140177381_oeb_004_r1" media-type="image/jpeg"/>
</manifest>
<spine>
<itemref idref="cover"/>
<itemref idref="toc"/>
<itemref idref="fm1"/>
<itemref idref="fm2"/>
<itemref idref="tp"/>
<itemref idref="cop"/>
<itemref idref="ded"/>
<itemref idref="fm3"/>
<itemref idref="c01"/>
<itemref idref="c02"/>
<itemref idref="c03"/>
<itemref idref="c04"/>
<itemref idref="c05"/>
<itemref idref="c06"/>
<itemref idref="c07"/>
<itemref idref="c08"/>
<itemref idref="c09"/>
<itemref idref="c10"/>
<itemref idref="c11"/>
<itemref idref="c12"/>
<itemref idref="c13"/>
<itemref idref="c14"/>
<itemref idref="c15"/>
<itemref idref="c16"/>
<itemref idref="c17"/>
<itemref idref="c18"/>
<itemref idref="c19"/>
<itemref idref="c20"/>
<itemref idref="c21"/>
<itemref idref="c22"/>
<itemref idref="c23"/>
<itemref idref="c24"/>
<itemref idref="c25"/>
<itemref idref="c26"/>
<itemref idref="c27"/>
<itemref idref="c28"/>
<itemref idref="c29"/>
<itemref idref="c30"/>
<itemref idref="c31"/>
<itemref idref="c32"/>
<itemref idref="bm1"/>
<itemref idref="ftn"/>
</spine>
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ePub TOC Missing some components
Everything is working perfectly when I view the ePub in iBooks or in the epub viewer. In addition, the file passes ePub check...
Read more >EPUB TOC Nav and links
Hi, all. I just produced/published a ~15 chapter, 450-page, image-dense print book using InDesign. Having physical books, I'm trying to use ...
Read more >RE: [docbook] ePub: Title page missing and ToC in spine?
If I look into the .epub file I > can > see a file OEBPS/index.html. ... This is a problem later in the...
Read more >fix spine order and file names based on toc.ncx
Possible solution (which worked for me):. generate calibre's ToC(as html) from correct toc.ncx (if not arleady exist); unpack epub ...
Read more >"Your book is missing a Table of Contents" when viewing in ...
Hello! I have an ePub that I created using Indesign and exported as an ePub3.0. I created a TOC within Indesign. I unzipped...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just checked it out and it works just as I needed. Really thankful for you to update and release a new version. I get about 1-2 github issues every month about broken ToC which previously would result in a user’s book not getting picked up by my software, but with this fix, all is good.
Thank you for reporting it!