Is there a way to easily combine multiple ebooks into a single file, that will collect all of them?
-
Related: http://ebooks.stackexchange.com/q/1069/136 – Sekhemty Mar 06 '14 at 22:37
3 Answers
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.

- 6,194
- 5
- 34
- 69
-
-
The TOC is created by merging the existing ones. Optionally, Calibre can also be used to customize it. – Sekhemty May 28 '17 at 09: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 Feb 05 '22 at 03:55
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.
- 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
-
Really like this strategy... I've been having a time trying to merge several hundred html files into a single epub. Calibre's
ebook-convertlets 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 (viaebook-convert), merge multiple pdfs into one with the above, and then convert the final pdf back to epub with one moreebook-convertcall. – zpangwin Feb 05 '22 at 04:02
You can use Calibre Merger Plugin , I think.
For details, click to how-to-merge-multiple-epub-ebooks
-
1Ideally 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