View Single Post
Old 01-25-2024, 08:13 PM   #5
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 207
Karma: 304158
Join Date: Jan 2016
Location: France
Device: none
I know, but it's odd that Calibre can't just use the PDF's bookmarks to know where new chapters start.

At this point, the conversion went pretty well after I removed the headers in the source PDF with a bit of Python.

I just need to figure out how to have Calibre start a new page with each new chapter.

--
Edit: If Calibre really is unable to split chapters by relying on the PDF's bookmarks, what about splitting the PDF into multiple files (one chapter = one PDF; For this, check qpdf, cpdf, mutool, etc.), have Calibre convert them into EPUB files, and then merge them into a single EPUB?
--
Edit: Is there an option to prevent ebook-convert.exe from adding a "Document Outline" at the end of the EPUB?

Last edited by Shohreh; 01-25-2024 at 10:10 PM.
Shohreh is offline   Reply With Quote