EBOOK-CONVERT(1)
โจ NAME โจ
ebook-convert โ the little command that takes one e-book and spits out a whole different e-book, no cap ๐
It lives inside calibre, bestie, and it is the main character of format conversion.
๐ SYNOPSIS ๐
ebook-convert input_file output_file [options]
๐ DESCRIPTION ๐
okay so here's the whole vibe: you're converting an e-book from one format to another. That's it. That's the job. ๐ฆ
input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command. Like, non-negotiable, they go first. ๐
The output e-book format is guessed from the file extension of output_file. And listen โ output_file can also be in the special format .EXT, where EXT is the output file extension. When you do that, the name of the output file gets derived from the name of the input file โจ. But note: the filenames must not start with a hyphen. Finally, if output_file has no extension at all, then it's treated as a folder, and an "open e-book" (OEB) made of HTML files gets written to that folder ๐. These are the files that would normally have been passed to the output plugin. iykyk.
After you've specified the input and output file, you can customize the conversion by specifying various options ๐ธ. The available options depend on the input and output file types โ so which options exist is literally a whole different menu depending on what you're converting. To get help on them, specify the input and output file and then use the -h option.
For full documentation of the conversion system, go look at E-book conversion <#conversion> ๐
Whenever you pass arguments toebook-convertthat have spaces in them, enclose the arguments in quotation marks. For example:"/some path/with spaces"โ yes bestie, quote it, or it will absolutely fall apart on you ๐ญ
The options and default values for the options change depending on both the input and output formats, so you should always check with:
ebook-convert myfile.input_format myfile.output_format -h
Below are the options that are common to all conversion, followed by the options specific to every input and output format. ๐
- Look and Feel
- Heuristic Processing
- Search and Replace
- Structure Detection
- Table of Contents
- Metadata
- Debug
- AZW4 Input Options
- CHM Input Options
- Comic Input Options
- DJVU Input Options
- DOCX Input Options
- EPUB Input Options
- FB2 Input Options
- HTLZ Input Options
- HTML Input Options
- LIT Input Options
- LRF Input Options
- MOBI Input Options
- ODT Input Options
- PDB Input Options
- PDF Input Options
- PML Input Options
- RB Input Options
- RTF Input Options
- Recipe Input Options
- SNB Input Options
- TCR Input Options
- TXT Input Options
- AZW3 Output Options
- DOCX Output Options
- EPUB Output Options
- FB2 Output Options
- HTML Output Options
- HTMLZ Output Options
- KEPUB Output Options
- LIT Output Options
- LRF Output Options
- MOBI Output Options
- OEB Output Options
- PDB Output Options
- PDF Output Options
- PML Output Options
- RB Output Options
- RTF Output Options
- SNB Output Options
- TCR Output Options
- TXT Output Options
- TXTZ Output Options
๐ OPTIONS ๐
--help,-hโ show this help message and exit. your bestie when you're lost, fr fr ๐--input-profileโ Specify the input profile. The input profile gives the conversion system information on how to interpret various information in the input document. For example resolution dependent lengths (i.e. lengths in pixels). Choices are:cybookg3,cybook_opus,default,hanlinv3,hanlinv5,illiad,irexdr1000,irexdr800,kindle,msreader,mobipocket,nook,sony,sony300,sony900--list-recipesโ List builtin recipe names. You can create an e-book from a builtin recipe like this:ebook-convert "Recipe Name.recipe" output.epubโจ--output-profileโ Specify the output profile. The output profile tells the conversion system how to optimize the created document for the specified device. In some cases, an output profile can be used to optimize the output for a particular device, but this is rarely necessary. Choices are:cybookg3,cybook_opus,default,generic_eink,generic_eink_hd,generic_eink_large,hanlinv3,hanlinv5,illiad,ipad,ipad3,irexdr1000,irexdr800,jetbook5,kindle,kindle_dx,kindle_fire,kindle_oasis,kindle_pw,kindle_pw3,kindle_scribe,kindle_voyage,kobo,msreader,mobipocket,nook,nook_color,nook_hd_plus,pocketbook_inkpad3,pocketbook_lux,pocketbook_hd,pocketbook_900,pocketbook_pro_912,galaxy,sony,sony300,sony900,sony-landscape,sonyt3,tablet๐ซถ--versionโ show program's version number and exit.
okay that's the opening act, bestie โ and there's so much more where that came fromโฆ ๐ธ
โจ LOOK AND FEEL โจ
okay bestie, this whole section is basically the glow-up menu ๐ธ โ it's all the options that control how your finished book actually looks and feels. fonts, spacing, margins, punctuation, the whole aesthetic. let's get into it ๐
--asciiizeโ transliterates Unicode characters into an ASCII representation. use this one with care bestie, because it literally replaces Unicode characters with ASCII. like, it'll turn "Pelรฉ" into "Pele". ๐ญ also heads up: when a character has multiple possible representations (like characters that Chinese and Japanese share), the representation picked will be based on the current calibre interface language. so like, it depends on the vibe of your setup.--base-font-sizeโ the base font size in pts. every font size in the book it produces gets rescaled relative to this size. bigger value = bigger fonts in the output, smaller = smaller. by default, when the value is zero, the base font size is chosen based on the output profile you picked. ๐--change-justificationโ changes text justification. a value of"left"converts all the justified text in the source into left aligned (aka unjustified) text. a value of"justify"converts all unjustified text into justified. a value of"original"(the default) leaves justification in the source file untouched. note that only some output formats even support justification, so don't be shocked if nothing happens. ๐--disable-font-rescalingโ disables all rescaling of font sizes. periodt.--embed-all-fontsโ embeds every font referenced in the input document that isn't already embedded. it'll search your system for the fonts, and if it finds them, boom, embedded โจ. embedding only works if the format you're converting to supports embedded fonts, like EPUB, AZW3, DOCX, or PDF. and please, bestie, make sure you actually have the proper license for embedding the fonts used in the document. i'm not playing about this one.--embed-font-familyโ embeds the font family you specify into the book. this sets the "base" font used for the book. if the input document specifies its own fonts, those may override this base font. you can use the filter style information option to strip fonts out of the input document. note that font embedding only works with some output formats โ principally EPUB, AZW3, and DOCX. ๐--expand-cssโ by default calibre uses the shorthand form for CSS properties likemargin,padding,border, etc. this option makes it use the full expanded form instead. note that CSS is always expanded when generating EPUB files with the output profile set to one of the Nook profiles, because the Nook simply cannot handle shorthand CSS. it's giving picky reader energy. ๐--extra-cssโ either the path to a CSS stylesheet, or raw CSS. this CSS gets appended to the style rules from the source file, so you can use it to override those rules. ๐ฆ--filter-cssโ a comma separated list of CSS properties that will be removed from all CSS style rules. super useful if some style info is preventing your device from overriding it. for example:font-family,color,margin-left,margin-right--font-size-mappingโ mapping from CSS font names to font sizes in pts. an example setting is12,12,14,16,18,20,22,24. these are the mappings for the sizesxx-smalltoxx-large, with the final size being for huge fonts. the font rescaling algorithm uses these sizes to intelligently rescale fonts. the default is a mapping based on the output profile you chose.--insert-blank-lineโ inserts a blank line between paragraphs. won't work if the source file doesn't use paragraphs (<p>or<div>tags). no paragraphs, no blank lines, that's the deal ๐คท--insert-blank-line-sizeโ sets the height of the inserted blank lines (in em). the height of the lines between paragraphs will be twice the value you set here. yes, double. that's not a typo.--keep-ligaturesโ preserves ligatures present in the input document. a ligature is a combined character made from a pair of characters, likeff,fi,fl, et cetera. most readers don't support ligatures in their default fonts, so they're unlikely to render correctly ๐ฌ. by default, calibre turns a ligature into the corresponding pair of normal characters. note that "ligatures" here means only unicode ligatures โ not ligatures created via CSS or font styles. this option preserves them instead of converting.--line-heightโ the line height in pts. controls spacing between consecutive lines of text. only applies to elements that don't define their own line height. in most cases, the minimum line height option is more useful. by default, no line height manipulation is performed.--linearize-tablesโ some badly designed documents use tables to control layout of text on the page ๐คข. when converted, those documents often end up with text running off the page and all kinds of other artifacts. this option extracts the content from the tables and presents it in a linear fashion. fixer-upper energy.--margin-bottomโ sets the bottom margin in pts. default is5.0. setting this to less than zero means no margin gets set (the margin setting in the original document will be preserved). note: page oriented formats like PDF and DOCX have their own margin settings that take precedence. ๐--margin-leftโ sets the left margin in pts. default is5.0. setting this to less than zero means no margin gets set (the margin setting in the original document will be preserved). note: page oriented formats like PDF and DOCX have their own margin settings that take precedence. ๐--margin-rightโ sets the right margin in pts. default is5.0. setting this to less than zero means no margin gets set (the margin setting in the original document will be preserved). note: page oriented formats like PDF and DOCX have their own margin settings that take precedence. ๐--margin-topโ sets the top margin in pts. default is5.0. setting this to less than zero means no margin gets set (the margin setting in the original document will be preserved). note: page oriented formats like PDF and DOCX have their own margin settings that take precedence. ๐--minimum-line-heightโ the minimum line height, as a percentage of the element's calculated font size. calibre makes sure every element has a line height of at least this setting, no matter what the input document specifies. set it to zero to disable. default is120%. use this in preference to the direct line height specification โ unless you know what you're doing. for example, you can get "double spaced" text by setting this to240. slay. ๐--remove-paragraph-spacingโ removes spacing between paragraphs. also sets an indent on paragraphs of1.5em. spacing removal won't work if the source file doesn't use paragraphs (<p>or<div>tags).--remove-paragraph-spacing-indent-sizeโ when calibre removes blank lines between paragraphs, it automatically sets a paragraph indent so paragraphs are still easy to tell apart. this option controls the width of that indent (in em). if you set this value negative, then the indent specified in the input document is used instead โ meaning calibre doesn't change the indentation at all. ๐ซถ--smarten-punctuationโ converts plain quotes, dashes, and ellipsis into their typographically correct equivalents. for the details, it points you at:https://daringfireball.net/projects/smartypants--subset-embedded-fontsโ subsets all embedded fonts. every embedded font gets reduced down to contain only the glyphs actually used in this document. this shrinks the size of the font files โจ. super useful if you're embedding a particularly huge font with tons of unused glyphs.--transform-css-rulesโ path to a file containing rules that transform the CSS styles in this book. the easiest way to make such a file is to use the wizard for creating rules in the calibre GUI. you'll find it in the "Look & feel->Transform styles" section of the conversion dialog. once you've made your rules, hit the "Export" button to save them to a file. ๐--transform-html-rulesโ path to a file containing rules that transform the HTML in this book. same deal: the easiest way to make one is the wizard for creating rules in the calibre GUI, found in the "Look & feel->Transform HTML" section of the conversion dialog. make your rules, then use the "Export" button to save them to a file. ๐--unsmarten-punctuationโ converts fancy quotes, dashes, and ellipsis into their plain equivalents. the un-glow-up. ๐
๐ฆ HEURISTIC PROCESSING ๐ฆ
okay bestie, so this whole section is calibre putting on its detective cap ๐ต๏ธโ๏ธ and modifying your document's text and structure using common patterns. It is disabled by default, so to get any of this magic you have to turn it on with --enable-heuristics. And if you want the general heuristic vibe but want to skip one specific action, you can disable that one with its matching --disable-* option. Slay. ๐
--disable-dehyphenateโ Analyze hyphenated words throughout the document. The document itself is used as a dictionary to determine whether hyphens should be retained or removed.--disable-delete-blank-paragraphsโ Remove empty paragraphs from the document when they exist between every other paragraph.--disable-fix-indentsโ Turn indentation created from multiple non-breaking space entities into CSS indents.--disable-format-scene-breaksโ Left aligned scene break markers are center aligned. Replace soft scene breaks that use multiple blank lines with horizontal rules.--disable-italicize-common-casesโ Look for common words and patterns that denote italics and italicize them.--disable-markup-chapter-headingsโ Detect unformatted chapter headings and sub headings. Change them to h2 and h3 tags. This setting will not create a TOC, but can be used in conjunction with structure detection to create one.--disable-renumber-headingsโ Looks for occurrences of sequential<h1>or<h2>tags. The tags are renumbered to prevent splitting in the middle of chapter headings.--disable-unwrap-linesโ Unwrap lines using punctuation and other formatting clues.--enable-heuristicsโ Enable heuristic processing. This option must be set for any heuristic processing to take place.--html-unwrap-factorโ Scale used to determine the length at which a line should be unwrapped. Valid values are a decimal between 0 and 1. The default is 0.4, just below the median line length. If only a few lines in the document require unwrapping this value should be reduced--replace-scene-breaksโ Replace scene breaks with the specified text. By default, the text from the input document is used.
๐ SEARCH AND REPLACE ๐
okay so this is the part where you get to modify the document text and structure using user defined patterns. You're the main character here. โจ
--search-replaceโ Path to a file containing search and replace regular expressions. The file must contain alternating lines of regular expression followed by replacement pattern (which can be an empty line). The regular expression must be in the Python regex syntax and the file must be UTF-8 encoded.--sr1-replaceโ Replacement to replace the text found withsr1-search.--sr1-searchโ Search pattern (regular expression) to be replaced withsr1-replace.--sr2-replaceโ Replacement to replace the text found withsr2-search.--sr2-searchโ Search pattern (regular expression) to be replaced withsr2-replace.--sr3-replaceโ Replacement to replace the text found withsr3-search.--sr3-searchโ Search pattern (regular expression) to be replaced withsr3-replace.
๐๏ธ STRUCTURE DETECTION ๐๏ธ
Control auto-detection of document structure. Let's get that structure right, bestie. ๐ง
--add-alt-text-to-imgโ When an<img>tag has noaltattribute, check the associated image file for metadata that specifies alternate text, and use it to fill in thealtattribute. Thealtattribute improves accessibility by providing text descriptions for users who cannot see or fully interpret visual content.--chapterโ An XPath expression to detect chapter titles. The default is to consider<h1>or<h2>tags that contain the words "chapter", "book", "section", "prologue", "epilogue" or "part" as chapter titles as well as any tags that haveclass="chapter". The expression used must evaluate to a list of elements. To disable chapter detection, use the expression/. See the XPath Tutorial in the calibre User Manual for further help on using this feature.--chapter-markโ Specify how to mark detected chapters. A value of "pagebreak" will insert page breaks before chapters. A value of "rule" will insert a line before chapters. A value of "none" will disable chapter marking and a value of "both" will use both page breaks and lines to mark chapters.--disable-remove-fake-marginsโ Some documents specify page margins by specifying a left and right margin on each individual paragraph. calibre will try to detect and remove these margins. Sometimes, this can cause the removal of margins that should not have been removed. In this case you can disable the removal.--insert-metadataโ Insert the book metadata at the start of the book. This is useful if your e-book reader does not support displaying/searching metadata directly.--page-breaks-beforeโ An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression:/--prefer-metadata-coverโ Use the cover detected from the source file in preference to the specified cover.--remove-first-imageโ Remove the first image from the input e-book. Useful if the input document has a cover image that is not identified as a cover. In this case, if you set a cover in calibre, the output document will end up with two cover images if you do not specify this option.--start-reading-atโ An XPath expression to detect the location in the document at which to start reading. Some e-book reading programs (most prominently the Kindle) use this location as the position at which to open the book. See the XPath tutorial in the calibre User Manual for further help using this feature.
๐ TABLE OF CONTENTS ๐
Control the automatic generation of a Table of Contents. By default, if the source file has a Table of Contents, it will be used in preference to the automatically generated one.
--duplicate-links-in-tocโ When creating a TOC from links in the input document, allow duplicate entries, i.e. allow more than one entry with the same text, provided that they point to a different location.--level1-tocโ XPath expression that specifies all tags that should be added to the Table of Contents at level one. If this is specified, it takes precedence over other forms of auto-detection. See the XPath Tutorial in the calibre User Manual for examples.--level2-tocโ XPath expression that specifies all tags that should be added to the Table of Contents at level two. Each entry is added under the previous level one entry. See the XPath Tutorial in the calibre User Manual for examples.--level3-tocโ XPath expression that specifies all tags that should be added to the Table of Contents at level three. Each entry is added under the previous level two entry. See the XPath Tutorial in the calibre User Manual for examples.--max-toc-linksโ Maximum number of links to insert into the TOC. Set to 0 to disable. Default is: 50. Links are only added to the TOC if less than the threshold number of chapters were detected.--no-chapters-in-tocโ Don't add auto-detected chapters to the Table of Contents.--toc-filterโ Remove entries from the Table of Contents whose titles match the specified regular expression. Matching entries and all their children are removed.--toc-thresholdโ If fewer than this number of chapters is detected, then links are added to the Table of Contents. Default: 6--use-auto-tocโ Normally, if the source file already has a Table of Contents, it is used in preference to the auto-generated one. With this option, the auto-generated one is always used.
๐ท๏ธ METADATA ๐ท๏ธ
Options to set metadata in the output. So fetch. ๐
--author-sortโ String to be used when sorting by author.--authorsโ Set the authors. Multiple authors should be separated by ampersands.--book-producerโ Set the book producer.--commentsโ Set the e-book description.--coverโ Set the cover to the specified file or URL--isbnโ Set the ISBN of the book.--languageโ Set the language.--pubdateโ Set the publication date (assumed to be in the local timezone, unless the timezone is explicitly specified)--publisherโ Set the e-book publisher.--ratingโ Set the rating. Should be a number between 1 and 5.--read-metadata-from-opf,--from-opf,-mโ Read metadata from the specified OPF file. Metadata read from this file will override any metadata in the source file.--seriesโ Set the series this e-book belongs to.--series-indexโ Set the index of the book in this series.--tagsโ Set the tags for the book. Should be a comma separated list.--timestampโ Set the book timestamp (no longer used anywhere)--titleโ Set the title.--title-sortโ The version of the title to be used for sorting.
๐ DEBUG ๐
Options to help with debugging the conversion. You got this. ๐ซถ
--debug-pipeline,-dโ Save the output from different stages of the conversion pipeline to the specified folder. Useful if you are unsure at which stage of the conversion process a bug is occurring.--verbose,-vโ Level of verbosity. Specify multiple times for greater verbosity. Specifying it twice will result in full verbosity, once medium verbosity and zero times least verbosity.
๐ฅ AZW4 INPUT OPTIONS ๐ฅ
--input-encodingโ Specify the character encoding of the input document. If set this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ฅ CHM INPUT OPTIONS ๐ฅ
--input-encodingโ Specify the character encoding of the input document. If set this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ COMIC INPUT OPTIONS ๐
Ok bestie, this section is for when your input is literally pictures of pages, like a CBZ or CBR or a CBC. Sit down, hydrate, we're gonna make those scans look good. ๐
--colorsโ Cuts down how many colors the image is rocking. Heads up though: this only works if you picked PNG as your output format. Great for making files smaller. Set it to zero and it's off. Max value is256. Off by default. โจ--comic-image-sizeโ You tell it the image size yourself as width x height in pixels, like123x321. Normally the size gets auto-calculated from your output profile, so this is the override button when you wanna be the main character. ๐--despeckleโ Turns on Despeckle. It reduces speckle noise. Fair warning: it may greatly increase processing time. Like, go-make-a-snack levels of time. ๐ญ--disable-trimโ Stops the trimming of comic pages. Why would you want that? Because for some comics, trimming might yeet actual content along with the borders. ๐--dont-add-comic-pages-to-tocโ When you're converting aCBC, this stops it from adding links to every single page into the TOC. Ngl, only relevant if the TOC has more than one section.--dont-grayscaleโ Don't convert the image to grayscale (black and white). Color stays winning. ๐--dont-normalizeโ Turns off normalize, which is the thing that improves contrast in the color range for pictures. Default:False. ๐--dont-sharpenโ Disables sharpening. Soft vibes only, apparently.--input-encodingโ You tell it the character encoding of the input document. Set this and it overrides whatever encoding the document claims about itself. This is so useful for docs that forgot to declare an encoding at all, or that declared one that's just straight-up wrong. ๐--keep-aspect-ratioโ Keeps the picture's aspect ratio intact. Default behavior is to fill the screen instead.--landscapeโ Stops landscape images from getting split into two portrait images. Let the wide ones be wide. ๐ฆ--no-processโ Applies zero processing to the image. Raw. Untouched. Iconic in a feral way.--no-sortโ Stops sorting the files found in the comic alphabetically by name. Instead it uses the order they were added to the comic. Respect the original order bestie. ๐ซถ--output-formatโ The format that the images inside your created e-book get converted to. Honestly just experiment to find which one gives you the best size and the best look on your specific device. ๐ฅ--right2leftโ For right-to-left publications like manga! It makes landscape pages split into portrait pages from right to left. Manga girlies, this one's for you. โญ--wideโ Keeps aspect ratio and scales the image using the screen height as the image width, for viewing in landscape mode. Tall screen energy.
๐ DJVU INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding the document declares for itself. Particularly useful for documents that don't declare an encoding at all, or that have erroneous encoding declarations. ๐
๐ DOCX INPUT OPTIONS ๐
--docx-inline-subsupโ Renders superscripts and subscripts so they don't mess with the line height. No more wonky spacing, slay. โจ--docx-no-coverโ So normally, if there's a big image right at the start of the document that looks like a cover, it gets pulled out and used as the cover for your new e-book. This option turns that whole behavior off. ๐--docx-no-pagebreaks-between-notesโ Don't insert a page break after every endnote. Let them breathe, periodt.--input-encodingโ Specify the character encoding of the input document. If set, this overrides any encoding declared by the document itself. Particularly useful for documents that don't declare an encoding, or that have erroneous encoding declarations. ๐ธ
๐ EPUB INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations. ๐ฆ
๐ง FB2 INPUT OPTIONS ๐ง
--input-encodingโ Specify the character encoding of the input document. If set, this overrides any encoding the document declares for itself. Particularly useful for documents that don't declare an encoding, or that have erroneous encoding declarations.--no-inline-fb2-tocโ Don't insert a Table of Contents at the beginning of the book. Some of us just don't want it there, and that's valid. ๐
๐ HTLZ INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ HTML INPUT OPTIONS ๐
Buckle up, these ones have actual consequences, so read them fr fr.
--allow-local-files-outside-rootโ Normally, resources linked to by the HTML file or its children are only allowed if they live in a sub-folder of the original HTML file. This option lets you include local files from any location on your computer.
โ ๏ธ This can be a security risk if you're converting untrusted HTML and you expect to distribute the result of the conversion. Do not play with this one casually, bestie. ๐ญ
--breadth-firstโ Traverses links in HTML files breadth first. Normally they're traversed depth first. Different search energy, different results. ๐ฅ--dont-packageโ Normally this input plugin rearranges all the input files into a standard folder hierarchy. Only use this option if you know what you're doing, because it can cause various nasty side effects in the rest of the conversion pipeline. Consider yourself warned. ๐--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations. ๐ซถ--max-levelsโ The maximum levels of recursion when following links in HTML files. Must be non-negative.0means that no links in the root HTML file are followed. Default is5.
โจ LIT INPUT OPTIONS โจ
--input-encodingโ Specify the character encoding of the input document. If set, this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ซ LRF INPUT OPTIONS ๐ซ
--input-encodingโ Specify the character encoding of the input document. If set, this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ MOBI INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations. ๐ธ
๐ ODT INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ฎ PDB INPUT OPTIONS ๐ฎ
--input-encodingโ Specify the character encoding of the input document. If set, this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐งพ PDF INPUT OPTIONS ๐งพ
The big one. Maximum options, maximum power. Let's go. ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.--no-imagesโ Do not extract images from the document. Text-only era, apparently.--pdf-engineโ The PDF engine to use. The"calibre"engine is recommended because it has automatic header and footer removal. Choices:calibre,pdftohtml.--pdf-footer-regexโ A regular expression to remove lines at the bottom of a page. It only looks at the last line of a page, and it works only with thecalibrePDF engine.--pdf-footer-skipโ Skip everything to the specified number of pixels at the bottom of a page. Negative numbers mean auto-detect and remove footers. Zero means do not remove footers. Positive numbers mean remove footers that appear below that many pixels from the bottom of the page. Works only with thecalibrePDF engine.--pdf-header-regexโ A regular expression to remove lines at the top of a page. It only looks at the first line of a page, and it works only with thecalibrePDF engine.--pdf-header-skipโ Skip everything to the specified number of pixels at the top of a page. Negative numbers mean auto-detect and remove headers. Zero means do not remove headers. Positive numbers mean remove headers that appear above that many pixels from the top of the page. Works only with the new PDF engine.--unwrap-factorโ The scale used to determine the length at which a line should be unwrapped. Valid values are a decimal between0and1. The default is0.45, which sits just below the median line length. ๐ฏ
๐ PML INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ RB INPUT OPTIONS ๐
--input-encodingโ Specify the character encoding of the input document. If set, this option will override any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations.
๐ RTF INPUT OPTIONS ๐
--ignore-wmfโ Ignore WMF images instead of replacing them with a placeholder image. Just pretend they were never there, bestie. โจ--input-encodingโ Specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that do not declare an encoding or that have erroneous encoding declarations. ๐ฆ
๐ RECIPE INPUT OPTIONS (aka the "it's on the internet, go get it" era) ๐
--dont-download-recipeโ bestie, this one tells it to not download the latest version of builtin recipes from the calibre server. Like, it just doesn't go fetch the new ones. That's the whole vibe.--input-encodingโ you're specifying the character encoding of the input document. If you set this, it overrides whatever encoding the document declared for itself. Super handy for docs that forgot to declare an encoding at all, or that are out here lying with erroneous declarations. ๐ญ--lrfโ optimizes the fetching for a later conversion to LRF. That's it, that's the tea. โจ--passwordโ the password for sites that need a login before you can get to the content.--recipe-specific-optionโ recipe-specific options, and the syntax isoption_name:value. For example:--recipe-specific-option = date:2030-11-31. You can specify it multiple times to set different options (obsessed ๐ซถ). And to see a list of all the available options for a recipe, just use--recipe-specific-option = list.--testโ this one is for recipe development, lowkey a dev tool. It forcesmax_articles_per_feedto 2 and downloads at most 2 feeds. You can change the number of feeds and articles by supplying optional arguments โ for example:--test 3 1will download at most 3 feeds and only 1 article per feed. slay.--usernameโ the username for sites that need a login to access content.
๐ฆ SNB INPUT OPTIONS ๐ฆ
--input-encodingโ specify the character encoding of the input document. If set, this option overrides any encoding the document declared itself. Especially useful for documents that don't declare an encoding, or that have erroneous encoding declarations. (yes, it's the same queen showing up again, she gets around ๐ )
๐ธ TCR INPUT OPTIONS ๐ธ
--input-encodingโ specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that don't declare an encoding or that have erroneous encoding declarations. iconic behavior, honestly.
๐ TXT INPUT OPTIONS ๐
--formatting-typeโ the formatting used within the document. The options are:auto: automatically decide which formatting processor to useplain: no formattingheuristic: use heuristics to determine chapter headings, italics, etc.textile: use the Textile markup languagemarkdown: use the Markdown markup language
To learn more about Markdown, see <https://daringfireball.net/projects/markdown/> โจ
--input-encodingโ specify the character encoding of the input document. If set, this option overrides any encoding declared by the document itself. Particularly useful for documents that don't declare an encoding or that have erroneous encoding declarations.--markdown-extensionsโ enables extensions to Markdown syntax. Extensions are formatting that isn't part of the standard Markdown format. The extensions enabled by default are:footnotes,tables,toc. To learn more about Markdown extensions, see <https://python-markdown.github.io/extensions/>. This should be a comma separated list of extensions to enable:abbr: abbreviationsadmonition: support admonitionsattr_list: add attribute to HTML tagscodehilite: add code highlighting via Pygmentsdef_list: definition listsextra: enables various common extensionsfenced_code: alternative code block syntaxfootnotes: footnoteslegacy_attrs: use legacy element attributeslegacy_em: use legacy underscore handling for connected wordsmeta: metadata in the documentnl2br: treat newlines as hard breakssane_lists: do not allow mixing list typessmarty: use Markdown's internal smartypants parsertables: support tablestoc: generate a table of contentswikilinks: wiki style links
--paragraph-typeโ the paragraph structure to assume. The valueoffis useful for formatted documents such as Markdown or Textile. Choices are:auto: try to auto detect paragraph typeblock: treat a blank line as a paragraph breaksingle: assume every line is a paragraphprint: assume every line starting with 2+ spaces or a tab starts a paragraphunformatted: most lines have hard line breaks, few/no blank lines or indentsoff: don't modify the paragraph structure
--preserve-spacesโ normally extra spaces get condensed down into a single space. With this option on, all spaces will be displayed. โจ--txt-in-remove-indentsโ normally extra space at the beginning of lines is retained. With this option, those get removed.
๐ AZW3 OUTPUT OPTIONS ๐
--dont-compressโ disables compression of the file contents.--extract-toโ extracts the contents of the generated AZW3 file to the specified folder. Heads up bestie, the contents of the folder are first deleted, so be careful. ๐ญ--mobi-toc-at-startโ when adding the Table of Contents to the book, add it at the start of the book instead of the end. Not recommended. ๐ซฃ--no-inline-tocโ don't add Table of Contents to the book. Useful if the book already has its own table of contents.--prefer-author-sortโ when present, use the author sort field as the author.--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins. (it's giving "we tried" ๐ )--share-not-syncโ enables sharing of book content via Facebook etc. on the Kindle.
โ ๏ธ WARNING: using this feature means that the book will not auto sync its last read position on multiple devices. Complain to Amazon. ๐
--toc-titleโ the title for any generated inline table of contents.
๐ DOCX OUTPUT OPTIONS ๐
--docx-custom-page-sizeโ a custom size of the document. Use the form width x height, for example:123x321to specify the width and height (in pts). This overrides any specified page-size.--docx-no-coverโ do not insert the book cover as an image at the start of the document. If you use this option, the book cover will be discarded. ๐--docx-no-tocโ do not insert the table of contents as a page at the start of the document.--docx-page-margin-bottomโ the size of the bottom page margin, in pts. Default is72pt. Overrides the common bottom page margin setting, unless set to zero.--docx-page-margin-leftโ the size of the left page margin, in pts. Default is72pt. Overrides the common left page margin setting.--docx-page-margin-rightโ the size of the right page margin, in pts. Default is72pt. Overrides the common right page margin setting, unless set to zero.--docx-page-margin-topโ the size of the top page margin, in pts. Default is72pt. Overrides the common top page margin setting, unless set to zero.--docx-page-sizeโ the size of the page. Default isletter. Choices are['a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'b0', 'b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'legal', 'letter']--extract-toโ extracts the contents of the generated DOCX file to the specified folder. And yeah, the contents of the folder are first deleted, so be careful. ๐ซถ--preserve-cover-aspect-ratioโ preserves the aspect ratio of the cover image instead of stretching it out to cover the entire page. no stretch, just vibes. โจ--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.
๐ EPUB OUTPUT OPTIONS ๐
--dont-split-on-page-breaksโ turns off splitting at page breaks, bestie. Normally your input files get auto-split at every single page break into two files, which gives you an output e-book that parses faster and eats less resources ๐. But splitting is slow, and if your source file has a very large number of page breaks you should lowkey just turn splitting off. iykyk.--epub-flattenโ you ONLY need this if you're gonna use the EPUB with FBReaderJ, periodt. It flattens the file system inside the EPUB so every file goes into the top level. No nesting, just vibes.--epub-inline-tocโ drops an inline Table of Contents right into the book as part of the main content. iconic behavior honestly ๐โจ--epub-max-image-sizeโ the max image size (width x height). If you passprofileit means "use the screen size from the output profile". If you passnoneit means no maximum size at all. For example,100x200makes every image resize so its width is no more than 100 pixels and its height is no more than 200 pixels. Heads up though โ this only touches the size of the actual image files themselves ๐ . Any given image can still be rendered at a different size depending on the styling you applied to it in the document.--epub-toc-at-endโ puts that inserted inline Table of Contents at the END of the book instead of the start. case closed.--epub-versionโ the version of the EPUB file to generate, duh. EPUB 2 is the most widely compatible, so only use EPUB 3 if you know you actually need it. girl, be honest with yourself.--extract-toโ extract the contents of the generated book to the specified folder.
โ ๏ธ The contents of the folder are first deleted, so be careful. Like, please be careful. Fr fr. ๐
--flow-sizeโ split all HTML files larger than this size (in KB). This is necessary because most EPUB readers straight up cannot handle large file sizes ๐ญ. The default of260KBis the size required for Adobe Digital Editions. Set it to0to disable size based splitting entirely.--no-default-epub-coverโ normally, if your input file has no cover and you don't specify one, a default cover gets generated with the title, authors, etc. This option disables the generation of that cover. no cover, no problem ๐--no-svg-coverโ do not use SVG for the book cover. Use this if your EPUB is going onto a device that does not support SVG, like the iPhone or the JetBook Lite ๐ฑ. Without this option, such devices will display the cover as a blank page (tragic, honestly).--preserve-cover-aspect-ratioโ when you're using an SVG cover, this makes the cover scale to cover the available screen area but still preserve its aspect ratio (ratio of width to height). That means there may be white borders at the sides or top and bottom of the image, but the image will never be distorted ๐. Without this option the image may be slightly distorted, but there will be no borders. pick your fighter.--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins (oops ๐).--toc-titleโ title for any generated inline table of contents. name it something cute.
๐ธ FB2 OUTPUT OPTIONS ๐ธ
--fb2-genreโ genre for the book. Choices:sf_history,sf_action,sf_epic,sf_heroic,sf_detective,sf_cyberpunk,sf_space,sf_social,sf_horror,sf_humor,sf_fantasy,sf,det_classic,det_police,det_action,det_irony,det_history,det_espionage,det_crime,det_political,det_maniac,det_hard,thriller,detective,prose_classic,prose_history,prose_contemporary,prose_counter,prose_rus_classic,prose_su_classics,love_contemporary,love_history,love_detective,love_short,love_erotica,adv_western,adv_history,adv_indian,adv_maritime,adv_geo,adv_animal,adventure,child_tale,child_verse,child_prose,child_sf,child_det,child_adv,child_education,children,poetry,dramaturgy,antique_ant,antique_european,antique_russian,antique_east,antique_myths,antique,sci_history,sci_psychology,sci_culture,sci_religion,sci_philosophy,sci_politics,sci_business,sci_juris,sci_linguistic,sci_medicine,sci_phys,sci_math,sci_chem,sci_biology,sci_tech,science,comp_www,comp_programming,comp_hard,comp_soft,comp_db,comp_osnet,computers,ref_encyc,ref_dict,ref_ref,ref_guide,reference,nonf_biography,nonf_publicism,nonf_criticism,design,nonfiction,religion_rel,religion_esoterics,religion_self,religion,humor_anecdote,humor_prose,humor_verse,humor,home_cooking,home_pets,home_crafts,home_entertain,home_health,home_garden,home_diy,home_sport,home_sex,home. See:<http://www.fictionbook.org/index.php/Eng:FictionBook_2.1_genres>for a complete list with descriptions ๐.--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins โจ.--sectionizeโ specify how sections are created:nothing: A single sectionfiles: Section per filetoc: Section per entry in the ToC
If ToC based generation fails, adjust the "Structure detection" and/or "Table of Contents" settings (turn on "Force use of auto-generated Table of Contents"). ngl that's the fix every time ๐ซถ
๐ HTML OUTPUT OPTIONS ๐
--extract-toโ extract the contents of the generated ZIP file to the specified folder.
โ ๏ธ WARNING: The contents of the folder will be deleted. do not test this on your home directory bestie ๐ญ
--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.--template-cssโ CSS file used for the output instead of the default CSS. make it โจaestheticโจ--template-htmlโ template used for the generation of the HTML contents of the book instead of the default template. In Mustache format. yes, the moustache one ๐ฅธ--template-html-indexโ template used for generation of the HTML index file instead of the default template. In Mustache format.
๐ฆ HTMLZ OUTPUT OPTIONS ๐ฆ
--htmlz-class-styleโ how to handle the CSS when usingcss-type = 'class'. Default isexternal.external: Use an external CSS fileinline: Use a<style>tag in the HTML file
--htmlz-css-typeโ specify the handling of CSS. Default isclass.class: Use CSS classesinline: Use thestyleattributetag: Use HTML tags wherever possible
--htmlz-title-filenameโ if set, this option causes the file name of the HTML file inside the HTMLZ archive to be based on the book title ๐. cute and functional.--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.
๐ KEPUB OUTPUT OPTIONS ๐
--dont-split-on-page-breaksโ turns off splitting at page breaks. Normally, input files are automatically split at every page break into two files, which gives you an output e-book that can be parsed faster and with less resources. However, splitting is slow and if your source file contains a very large number of page breaks, you should turn off splitting on page breaks. same energy as the EPUB one, if you know you know ๐ฅ.--extract-toโ extract the contents of the generated book to the specified folder.
โ ๏ธ The contents of the folder are first deleted, so be careful. yeah. again. ๐
--flow-sizeโ split all HTML files larger than this size (in KB). This is necessary as some devices cannot handle large file sizes. Set to0to disable size based splitting.--kepub-affect-hyphenationโ modify how hyphenation is performed for this book. Note that hyphenation does not perform well for all languages, as it depends on the dictionaries present on the device, which are not always of the highest quality ๐ฌ. not her fault, it's the dictionaries.--kepub-disable-hyphenationโ override all hyphenation settings in book, forcefully disabling hyphenation completely. no hyphens. none. periodt.--kepub-hyphenation-limit-linesโ maximum consecutive hyphenated lines.--kepub-hyphenation-min-charsโ minimum word length to hyphenate, in characters.--kepub-hyphenation-min-chars-afterโ minimum characters after hyphens.--kepub-hyphenation-min-chars-beforeโ minimum characters before hyphens.--kepub-max-image-sizeโ the maximum image size (width x height). A value ofprofilemeans use the screen size from the output profile. A value ofnonemeans no maximum size is specified. For example, a value of100x200will cause all images to be resized so that their width is no more than 100 pixels and their height is no more than 200 pixels. Note that this only affects the size of the actual image files themselves ๐ . Any given image may be rendered at a different size depending on the styling applied to it in the document.--kepub-prefer-justificationโ okay so, the KEPUB renderer on the Kobo has a bug when text justification is turned on. It will either not justify text properly or when highlighting there will be gaps between neighboring highlighted parts of text ๐ญ. By default, calibre generates KEPUB that avoid the highlighting gaps at the expense of worse text justification. This option reverses that tradeoff. Use this option if you use justification when reading on your Kobo device. choices were made.--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.
โญ LIT OUTPUT OPTIONS โญ
--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins. that's it. that's the whole section. she's lowkey chill like that ๐
๐ธ LRF OUTPUT OPTIONS ๐ธ
--enable-autorotationโ turns on auto-rotation for images that are wider than the screen width. Let the wide girls rotate, bestie ๐--headerโ adds a header to every page, with the title and the author on it.--header-formatโ sets what that header actually looks like.%agets swapped for the author,%tgets swapped for the title. Default is%t by %a.--header-separationโ adds extra spacing below the header. Default is0 pt.--minimum-indentโ the minimum paragraph indent, meaning the indent of the first line of a paragraph, in pts. Default:0--mono-familyโ the monospace family of fonts to embed.--pretty-printโ if you specify it, the output plugin will try to make output that's as human readable as possible. Heads up tho: it may not have any effect for some output plugins. ๐--render-tables-as-imagesโ this option has no effect. Yeah. Literally nothing. It's giving decorative. ๐--sans-familyโ the sans-serif family of fonts to embed.--serif-familyโ the serif family of fonts to embed.--text-size-multiplier-for-rendered-tablesโ multiplies the size of text in rendered tables by this factor. Default is1.0--wordspaceโ sets the space between words, in pts. Default is2.5
๐ฅ MOBI OUTPUT OPTIONS ๐ฅ
--dont-compressโ disables compression of the file contents.--extract-toโ extracts the contents of the generated MOBI file into the folder you specify. โ ๏ธ The contents of that folder get deleted first, so be careful, babe.--mobi-file-typeโ by default calibre generates MOBI files containing the old MOBI 6 format. That format plays nice with all devices. But if you change this setting, you can tell calibre to generate MOBI files that contain both MOBI 6 and the new KF8 format, or only the new KF8 format. KF8 has more features than MOBI 6, but it only works with newer Kindles. Allowed values:old,both,new--mobi-ignore-marginsโ ignores margins in the input document. IfFalse, the MOBI output plugin will try to convert the margins specified in the input document; otherwise it ignores them.--mobi-keep-original-imagesโ by default calibre converts all images to JPEG format in the output MOBI file, for maximum compatibility, since some older MOBI viewers freak out over other image formats. This option tells calibre not to do that. Super useful if your document has lots of GIF/PNG images that blow up in size when converted to JPEG.--mobi-toc-at-startโ when adding the Table of Contents to the book, adds it at the start of the book instead of the end. Not recommended. ๐ โโ๏ธ--no-inline-tocโ doesn't add a Table of Contents to the book. Useful if the book already has its own table of contents.--personal-docโ tag for MOBI files to be marked as personal documents. This option has no effect on the conversion โ it's only used when sending MOBI files to a device. If the file being sent has the specified tag, it'll be marked as a personal document when it's sent to the Kindle. Use the value*to match all books.--prefer-author-sortโ when present, uses the author sort field as the author.--pretty-printโ if you specify it, the output plugin will try to make output that's as human readable as possible. Reminder: may not have any effect for some output plugins. โจ--share-not-syncโ enables sharing of book content via Facebook etc. on the Kindle. ๐จ WARNING: using this feature means the book will not auto sync its last read position on multiple devices. Complain to Amazon. ๐ค--toc-titleโ the title for any generated inline table of contents.
๐ฆ OEB OUTPUT OPTIONS ๐ฆ
--pretty-printโ if you specify it, the output plugin will try to make output that's as human readable as possible. And yes, it may not have any effect for some output plugins. Same energy every time, fr fr.
๐ PDB OUTPUT OPTIONS ๐
--format,-fโ the format to use inside the PDB container. Choices are:doc,ereader,ztxt--inline-tocโ adds a Table of Contents to the beginning of the book.--pdb-output-encodingโ specifies the character encoding of the output document. The default iscp1252. Note: this option is not honored by all formats.--pretty-printโ if specified, the output plugin will try to make output that's as human readable as possible. May not have any effect for some output plugins.
๐ PDF OUTPUT OPTIONS ๐
--custom-sizeโ a custom size for the document. Use the form width x height, e.g.123x321, to specify the width and height. This overrides any specifiedpaper-size.--paper-sizeโ the size of the paper. This size gets overridden when a non-default output profile is used. Default isletter. Choices area0,a1,a2,a3,a4,a5,a6,b0,b1,b2,b3,b4,b5,b6,legal,letter--pdf-add-tocโ adds a Table of Contents at the end of the PDF that lists page numbers. Useful if you wanna print the PDF out. If this PDF is meant for electronic use, use the PDF Outline instead.--pdf-default-font-sizeโ the default font size (in pixels).--pdf-footer-templateโ an HTML template used to generate footers on every page. The strings_PAGENUM_,_TITLE_,_AUTHOR_and_SECTION_get replaced by their current values.--pdf-header-templateโ an HTML template used to generate headers on every page. The strings_PAGENUM_,_TITLE_,_AUTHOR_and_SECTION_get replaced by their current values.--pdf-hyphenateโ breaks long words at the end of lines. This can give text at the right margin a more even appearance. Note that depending on the fonts used, this option can break the copying of text from the PDF file. ๐ฌ--pdf-mark-linksโ surrounds all links with a red box. Useful for debugging.--pdf-mono-familyโ the font family used to render monospace fonts. Will work only if the font is available system-wide.--pdf-mono-font-sizeโ the default font size for monospaced text (in pixels).--pdf-no-coverโ doesn't insert the book cover as an image at the start of the document. Heads up: if you use this option, the book cover gets discarded. Gone. Poof. ๐ญ--pdf-odd-even-offsetโ shifts the text horizontally by the specified offset (in pts). On odd numbered pages it's shifted to the right, and on even numbered pages to the left. Use negative numbers for the opposite effect. Note that this setting is ignored on pages where the margins are smaller than the specified offset. Shifting is done by setting the PDF CropBox โ and not all software respects the CropBox. ๐--pdf-page-margin-bottomโ the size of the bottom page margin, in pts. Default is72pt. Overrides the common bottom page margin setting, unless set to zero.--pdf-page-margin-leftโ the size of the left page margin, in pts. Default is72pt. Overrides the common left page margin setting.--pdf-page-margin-rightโ the size of the right page margin, in pts. Default is72pt. Overrides the common right page margin setting, unless set to zero.--pdf-page-margin-topโ the size of the top page margin, in pts. Default is72pt. Overrides the common top page margin setting, unless set to zero.--pdf-page-number-mapโ adjusts page numbers, as needed. Syntax is a JavaScript expression for the page number. For example,"if (n < 3) 0; else n - 3;", wherenis the current page number.--pdf-page-numbersโ adds page numbers to the bottom of every page in the generated PDF file. If you specify a footer template, it takes precedence over this option.--pdf-sans-familyโ the font family used to render sans-serif fonts. Will work only if the font is available system-wide.--pdf-serif-familyโ the font family used to render serif fonts. Will work only if the font is available system-wide.--pdf-standard-fontโ the type of font family used to render font for which no font family is specified.--pdf-use-document-marginsโ uses the page margins specified in the input document via@pageCSS rules. This causes the margins specified in the conversion settings to be ignored. If the document doesn't specify page margins, the conversion settings get used as a fallback.--preserve-cover-aspect-ratioโ preserves the aspect ratio of the cover instead of stretching it to fill the full first page of the generated PDF. Protect the cover's proportions, she deserves it. ๐--pretty-printโ if specified, the output plugin will try to make output that's as human readable as possible. May not have any effect for some output plugins.--toc-titleโ title for the generated table of contents.--uncompressed-pdfโ generates an uncompressed PDF. Useful for debugging.--unit,-uโ the unit of measure for page sizes. Default isinch. Choices aremillimeter,centimeter,point,inch,pica,didot,cicero,devicepixel. Note: this does not override the unit for margins!--use-profile-sizeโ instead of using the paper size specified in the PDF Output options, uses a paper size corresponding to the current output profile. Useful if you wanna generate a PDF for viewing on a specific device.
๐ PML OUTPUT OPTIONS ๐
--full-image-depthโ doesn't reduce the size or bit depth of images. By default, images have their size and depth reduced to accommodate applications that can't convert images on their own, such as Dropbook.--inline-tocโ adds a Table of Contents to the beginning of the book.--pml-output-encodingโ specifies the character encoding of the output document. The default iscp1252.--pretty-printโ if specified, the output plugin will try to make output that's as human readable as possible. May not have any effect for some output plugins.
โญ RB OUTPUT OPTIONS โญ
--inline-tocโ adds a Table of Contents to the beginning of the book.--pretty-printโ if specified, the output plugin will try to make output that's as human readable as possible. May not have any effect for some output plugins.
๐ RTF OUTPUT OPTIONS ๐
--pretty-printโ say yes to this and the output plugin will do its lil best to make output that's as human readable as possible. Lowkey might do absolutely nothing for some plugins tho, so don't come for me if it's giving the same either way. ๐
๐ฆ SNB OUTPUT OPTIONS ๐ฆ
--pretty-printโ if you specify this, the output plugin tries to create output that's as human readable as it can possibly be. Fr fr this may not have any effect for some output plugins. ๐--snb-dont-indent-first-lineโ tells it whether or not to stick two space characters in to indent the first line of every paragraph.--snb-full-screenโ resizes all the images for full screen mode. โจ--snb-hide-chapter-nameโ decides whether or not to hide the chapter title for each chapter. Super useful for image-only output, like, say, comics. ๐--snb-insert-empty-lineโ whether or not to insert an empty line between two paragraphs.--snb-max-line-lengthโ the maximum number of characters per line. It splits on the first space before the specified value. If there's no space found, the line gets broken at the space after and will exceed the specified value (no cap, literally). Also heads up: there's a minimum of 25 characters. Use0to disable line splitting entirely. ๐คฏ--snb-output-encodingโ specify the character encoding of the output document. The default isutf-8. ๐ธ
๐ TCR OUTPUT OPTIONS ๐
--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins. (Yes bestie, it's the same energy every time.)--tcr-output-encodingโ specify the character encoding of the output document. The default isutf-8. โจ
๐ TXT OUTPUT OPTIONS ๐
--force-max-line-lengthโ forces splitting on themax-line-lengthvalue when no space is present. Also letsmax-line-lengthgo below the minimum. Main character behavior honestly. ๐ฅ--inline-tocโ adds a Table of Contents to the beginning of the book. ๐ซถ--keep-colorโ do not remove font color from output. This is only useful when TXT output formatting is set totextileโ textile is the only formatting that supports setting font color, periodt. If this option isn't specified, font color will not be set and will default to the color displayed by the reader (which is generally black, so, you know, default vibes). ๐--keep-image-referencesโ do not remove image references within the document. This is only useful when paired with a TXT output formatting option that is notnone, because links are always removed with plain text output. ๐--keep-linksโ do not remove links within the document. Again, only useful when paired with a TXT output formatting option that is notnone, because links are always removed with plain text output.--max-line-lengthโ the maximum number of characters per line. Splits on the first space before the specified value. If no space is found, the line breaks at the space after and will exceed the specified value. There's a minimum of 25 characters. Use0to disable line splitting. ๐--newline,-nโ type of newline to use. Options are['old_mac', 'system', 'unix', 'windows']. Default is'system'. Use'old_mac'for compatibility with Mac OS 9 and earlier. For macOS use'unix'.'system'will default to the newline type used by this OS. ๐ง--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.--txt-output-encodingโ specify the character encoding of the output document. The default isutf-8. โญ--txt-output-formattingโ formatting used within the document.plain: Plain textmarkdown: Markdown formatted texttextile: Textile formatted text
--use-alt-text-for-imagesโ replaces images with the text from thealtattribute, if there is any. Ignored if the option to keep image references is specified. ๐
๐ TXTZ OUTPUT OPTIONS ๐
--force-max-line-lengthโ forces splitting on themax-line-lengthvalue when no space is present. Also allowsmax-line-lengthto be below the minimum. ๐--inline-tocโ adds a Table of Contents to the beginning of the book. โจ--keep-colorโ do not remove font color from output. Only useful when TXT output formatting is set totextile, since textile is the only formatting that supports setting font color. If this option is not specified, font color will not be set and will default to the color displayed by the reader (generally this is black). ๐ค--keep-image-referencesโ do not remove image references within the document. Only useful when paired with a TXT output formatting option that is notnone, because links are always removed with plain text output.--keep-linksโ do not remove links within the document. Only useful when paired with a TXT output formatting option that is notnone, because links are always removed with plain text output.--max-line-lengthโ the maximum number of characters per line. Splits on the first space before the specified value. If no space is found, the line breaks at the space after and will exceed the specified value. Also there's a minimum of 25 characters. Use0to disable line splitting. ๐ธ--newline,-nโ type of newline to use. Options are['old_mac', 'system', 'unix', 'windows']. Default is'system'. Use'old_mac'for compatibility with Mac OS 9 and earlier. For macOS use'unix'.'system'will default to the newline type used by this OS. ๐--pretty-printโ if specified, the output plugin will try to create output that is as human readable as possible. May not have any effect for some output plugins.--txt-output-encodingโ specify the character encoding of the output document. The default isutf-8. ๐--txt-output-formattingโ formatting used within the document.plain: Plain textmarkdown: Markdown formatted texttextile: Textile formatted text
--use-alt-text-for-imagesโ replaces images with the text from thealtattribute, if any. Ignored if the option to keep image references is specified. ๐ฆ
๐ Author ๐
Kovid Goyal โ the icon, the legend, the moment. ๐
๐ Copyright ๐
Kovid Goyal owns all of this, no cap. ๐ซถ
And that's a wrap on the whole page bestie!! This was version9.14.0dropped on August 28, 2026, and it's literally all documented under theEBOOK-CONVERT(1)name. Go forth and convert your lil heart out ๐ โจ๐
๐ฆ where this page comes from
- arch rolling: calibre 9.14.0-5 ยท GPL-3.0-only
- nixos 26.05: calibre 9.14.0
- ubuntu stonking: calibre 9.14.0+ds+~0.10.6-2build1 ยท GPL-3.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms