Is there a way to easily combine multiple ebooks into a single file, that will collect all of them?
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.
-
-
The TOC is created by merging the existing ones. Optionally, Calibre can also be used to customize it.– SekhemtyCommented 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)– zpangwinCommented Feb 5, 2022 at 3: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.
-
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
-
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 (viaebook-convert
), merge multiple pdfs into one with the above, and then convert the final pdf back to epub with one moreebook-convert
call.– zpangwinCommented Feb 5, 2022 at 4: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 ♦Commented Apr 30, 2014 at 14:28