mobitool - Man Page

Utility for handling MOBI format ebook files.

Synopsis

mobitool[-cdeimrsuvx7] [-o dir] [-p pid] [-P serial] file

Description

The program handles .prc, .mobi, .azw; .azw3, .azw4, some .pdb documents. Written as a test case for libmobi library.

Invoked without arguments prints document metadata and exits.

A list of flags and their descriptions:

-c

dump cover

-d

dump rawml text record

-e

convert mobi to epub

-i

print detailed metadata

-m

print records metadata

-o dir

save output to dir folder

-p pid

set pid for decryption

-P serial

set device serial number for decryption

-r

dump raw records

-s

dump recreated source files

-u

show rusage (diagnostics)

-v

show version and exit

-x

extract conversion source and log (if present)

-7

parse KF7 part of hybrid file (by default KF8 part is parsed)

Examples

The following command decompiles given mobi document. The output folder will be created in /tmp.

mobitool -s -o /tmp example.mobi

The following command converts mobi document to epub format.

mobitool -e example.mobi

Return Values

The mobitool utility returns 0 on success, 1 on error.

Web Site

Visit http://www.fabiszewski.net for details.

Diagnostics

For diagnostics libmobi must be configured with [--enable-debug] option.

See Also

mobimeta(1)

Referenced By

mobimeta(1).

June 23, 2020