View Single Post
Old 09-02-2024, 07:00 AM   #1
Whip
Member
Whip began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2024
Device: none
how to use command line to automatically create ToC from all headings?

Hello,

I want to use the command line to convert an html book to epub and select the setting "Generate ToC from all headings." I don't see this option available in the command line interface in the documentation, but it is available in the calibre edit GUI.

Currently, I have to drag the html into calibre, convert to epub, click edit on the converted file, open the ToC GUI, delete the auto-generated ToC, then click "Generate ToC from all headings".

Can someone tell me how to automate this process from the command line with ebook-convert, ebook-edit, or some other tool?

Thank you!
Whip is offline   Reply With Quote