15

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

Sekhemty
  • 6,194
  • 5
  • 34
  • 69

3 Answers3

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

Sekhemty
  • 6,194
  • 5
  • 34
  • 69
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.

Anthon
  • 7,641
  • 3
  • 23
  • 56
  • Maybe a little more content here on where you would run this command? Are you doing this on an ereader, Windows folder, Apple...? – James Jenkins Mar 07 '14 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 – DᴀʀᴛʜVᴀᴅᴇʀ Mar 07 '14 at 14:53
  • 1
    @Gramps You can use it on Windows as well, and on OSX – Holger Mar 07 '14 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 Feb 05 '22 at 04:02
0

You can use Calibre Merger Plugin , I think.

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

  • 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 Apr 30 '14 at 14:28