How can I easily extract some sections from an ebook and create a new one that will contain just those parts? It would be especially useful with omnibus ebooks when I want to read just some of the included novels.

  • Related: ebooks.stackexchange.com/q/1067/136
    – Sekhemty
    Commented Mar 6, 2014 at 22:38
  • Are you only interested in EPUB? Your text does not seem to exclude other formats. And I guessed that the tag would not restrict, because that would imply only answers that do not include sigil and calibre would be inappropriate, which seems kind of restrictive.
    – Anthon
    Commented Mar 7, 2014 at 13:24
  • Some of these tags were related to my answer, not to the question.
    – Sekhemty
    Commented Mar 9, 2014 at 9:36
  • I think you should restrict the tags to the question itself and not to possible answers (see first line in the help on using tags)
    – Anthon
    Commented Mar 9, 2014 at 9:47
  • 1
    I was not aware of that. I am used (on Unix & Linux) to questions not having the Linux distribution the OP uses in the text, but just as a tag e.g. [Ubuntu], and that is always a limiting factor on answers. I had originally overlooked the epub. Which is good, otherwise I would probably not have answered, thinking of it as restricting the ebook formats you were interested in.
    – Anthon
    Commented Mar 10, 2014 at 4:22

2 Answers 2


Besides using a real ebook editor like Sigil, there is an easier way to do it.

Calibre has a very useful additional plugin called EpubSplit, that with a simple interface let's you select the single .html files inside the .epub and create a new ebook just from them; after the process is also possible to edit the metadata of the newly created ebook.

These tools only work with .epub files, to perform this kind of editing on other formats a conversion with Calibre should be made.

enter image description here

  • I think manually doing it would be the best. The method you posted will be troublesome when Calibre splits a file, for no reason, the creator usually doesn't understand already what is going on, so in the middle of a chapter you have to sift through what chapter goes where instead of creating the title from scratch in the first place. You should also note that just because it says title_split_### doesn't necessarily mean that is a chapter. Commented Mar 6, 2014 at 22:55

Assuming that new chapters/sections begin on a new page:

For a PDF files:

pdftk in.pdf cat 1 2 5-8 output out.pdf

gives you page 1,2,5,6,7,8.

For a DjVu file, for each page with number N do:

djvused in.djvu -e "select N; save-page-with part-N.pdf"

and then combine with:

djvm part-*.djvu out.djvu

assuming you have padded N with leading zeros to the widht of the largest page number, otherwise the sorting of the part-N.djvu files will not be same order as in the original file.

  • Maybe a little more content here on where you would run this command? Are you doing this on an ereader, Windows folder, Apple...? Commented Mar 7, 2014 at 11:44
  • 1
    @JamesJenkins Why do you think that is necessary here, and not for the other answers?
    – Anthon
    Commented Mar 7, 2014 at 12:15
  • What other answers are you referring to? Commented Mar 7, 2014 at 12:22
  • If you are referring to the other answers on this question. The Sekhemty answer says do something with a specific program (Calibre) and the user743 answer says do something with a specific program (Calibre, & with windows implied by docx). The Anthon answer gives commands for two different file types, which are not native to any OS, no software nor OS is implied. Presumably the commands supplied are not effective as written across all potential ebook modifying tools. Commented Mar 7, 2014 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.