install calibre
Command Line Manual
http://calibre-ebook.com/user_manual/cli/ebook-convert.html
Assign new name on output
$ ebook-convert input.pdf output.epub
use same basename on output
$ ebook-convert input.pdf .epub
Official Site
http://calibre-ebook.com/
Note: If you want to have Comic CBR file support, you have to get the version from the Official site, the one in Ubuntu is crap and doesnt have support for Rar files. http://calibre-ebook.com/download_linux
calibre has a conversion system that is designed to be very easy to use. Normally, you just add a book to calibre, click convert and calibre will try hard to generate output that is as close as possible to the input. However, calibre accepts a very large number of input formats, not all of which are as suitable as others for conversion to e-books. In the case of such input formats, or if you just want greater control over the conversion system, calibre has a lot of options to fine tune the conversion process. Note however that calibre's conversion system is not a substitute for a full blown e-book editor. To edit e-books, I would recommend first converting them to EPUB using calibre and then using a dedicated EPUB editor, like Sigil to get the book into perfect shape. You can then use the edited EPUB as input for conversion into other formats in calibre.
This document will refer mainly to the conversion settings as found in the conversion dialog, pictured below. All these settings are also available via command line interface to conversion, documented at ebook-convert. In calibre, you can obtain help on any individual setting by holding your mouse over it, a tooltip will appear describing the setting.
Nice vid, it works exactly the same on windows.
To convert all pdf files in the current folder to mobi files for kindle use the following in a batch (windows only):
FOR /R %cd% %%f IN (*.pdf) DO ebook-convert "%%f" .mobi --output-profile kindle
helvetiCeltic 9 months ago
@helvetiCeltic Thanks! useful for the windows folks =)
gotbletu 9 months ago
Can you tell me about cbz files? Which advantages and lacks have they?
3354745 11 months ago
@3354745 cbz files are just zip files but ment for comic books. Advantage is u wont have to extract it and it also saves space since it is compressed
gotbletu 11 months ago
@gotbletu It means that I cannot add them it zip archive? And every cbz file can contain many books inside it?
3354745 11 months ago
@3354745 cbz/cbr are for images like jpg,png, mainly comicbooks container
gotbletu 11 months ago