15

Is there a way to easily combine multiple ebooks into a single file, that will collect all of them?

1

3 Answers 3

9

Is it possible to use a full fledged editor like Sigil. It works with .epub files, but if needed, before the editing, it's possible to use Calibre to convert the source ebook into .epub, then reconvert it after the job.

Anyway, for a faster and easier solution, Calibre has a very useful additional plugin called EpubMerge, that, as the name imply, can merge multiple epubs into a single one, also letting create a new table of contents and edit all relevant metadata of the new output file, while leaving unaltered the source ones. Also in this case, if another ebook format is needed, a conversion is required after the editing since the plugin only works with .epub files.

enter image description here

3
  • So how is the TOC addressed then? Commented Mar 6, 2014 at 22:57
  • The TOC is created by merging the existing ones. Optionally, Calibre can also be used to customize it.
    – Sekhemty
    Commented May 28, 2017 at 9:08
  • updated link for Sigil since code.google.com is long gone: https://github.com/Sigil-Ebook/Sigil. If you are on Linux, it might even already be in your central repos (It was for Fedora 35)
    – zpangwin
    Commented Feb 5, 2022 at 3:55
4

Assuming all files and only those files are in one directory.

For PDF files:

pdftk *.pdf cat output ../combined.pdf

For DjVu:

djvm  -create *.djvu ../combined.djvu

Of course you would have to resolve metadata (author of a combined document) yourself.

4
  • 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:42
  • 1
    @JamesJenkins that would best executed through a Linux terminal. A good reference: "How do I install Pdftk on my server?" there is a graphical tool: PDFtk Free Commented Mar 7, 2014 at 14:53
  • 1
    @Gramps You can use it on Windows as well, and on OSX
    – Holger
    Commented Mar 7, 2014 at 15:06
  • Really like this strategy... I've been having a time trying to merge several hundred html files into a single epub. Calibre's ebook-convert lets me do this for a 1:1 conversion but doesn't seem to accept multiple input files. There is Calibre Merger Plugin but it appears to only work for graphical mode making it a no-go for scripting ~800 html pages into a single file... With this, I can programmatically convert html to pdf (via ebook-convert), merge multiple pdfs into one with the above, and then convert the final pdf back to epub with one more ebook-convert call.
    – zpangwin
    Commented Feb 5, 2022 at 4:02
0

You can use Calibre Merger Plugin , I think.

For details, click to how-to-merge-multiple-epub-ebooks

1
  • 1
    Ideally you should summarize the steps in your answer (and leave the link). Link-only answers are generally frowned up (especially if the site is down or the link dies for whatever reason).
    – Jason Down
    Commented Apr 30, 2014 at 14:28

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.