← 返回命令列表

Linux command

ebook-convert 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert EPUB to MOBI

ebook-convert [book.epub] [book.mobi]

Convert PDF to EPUB

ebook-convert [book.pdf] [book.epub]

Set output profile

ebook-convert [input.epub] [output.mobi] --output-profile [kindle]

Convert with custom cover

ebook-convert [book.epub] [book.mobi] --cover [cover.jpg]

Set metadata

ebook-convert [book.epub] [book.mobi] --authors "[Author Name]" --title "[Book Title]"

Convert HTML to EPUB

ebook-convert [book.html] [book.epub]

说明

ebook-convert is Calibre's command-line tool for converting between ebook formats. It supports a wide range of formats including EPUB, MOBI, PDF, AZW3, HTML, and many others. The tool handles format-specific optimizations and allows customization of output including fonts, margins, covers, and metadata.

参数

--output-profile _profile_
Device profile (kindle, ipad, etc.).
--cover _file_
Use custom cover image.
--authors _names_
Set author metadata.
--title _title_
Set book title.
--base-font-size _size_
Base font size in points.
--embed-all-fonts
Embed all fonts.
--change-justification _type_
Text justification.
--margin-top/bottom/left/right _pts_
Set margins.
--list-recipes
List news recipes.
--input-encoding _enc_
Input file encoding.

FAQ

What is the ebook-convert command used for?

ebook-convert is Calibre's command-line tool for converting between ebook formats. It supports a wide range of formats including EPUB, MOBI, PDF, AZW3, HTML, and many others. The tool handles format-specific optimizations and allows customization of output including fonts, margins, covers, and metadata.

How do I run a basic ebook-convert example?

Run `ebook-convert [book.epub] [book.mobi]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --output-profile _profile_ do in ebook-convert?

Device profile (kindle, ipad, etc.).