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?