mutool convert¶
The convert command converts an input file into another format.
mutool convert [options] file [pages]
[options]Options are as follows:
-ppasswordUse the specified password if the file is encrypted.
-ooutputThe output file name. The output format is inferred from the output filename. Embed
%din the name to indicate the page number (for example: “page%d.png”). Printf modifiers are supported, for example “%03d”. If no output is specified, the output will go tostdout.-Foutput format (default inferred from output file name)raster:
cbz,png,pnm,pgm,ppm,pam,pbm,pkm.print-raster:
pcl,pclm,ps,pwg.vector:
pdf,svg.text:
html,xhtml,text,stext.
-bboxUse named page box (
MediaBox,CropBox,BleedBox,TrimBox, orArtBox).-AbitsSpecify how many bits of anti-aliasing to use. The default is
8.-WwidthPage width in points for EPUB layout.
-HheightPage height in points for EPUB layout.
-SsizeFont size in points for EPUB layout.
-UfilenameUser CSS stylesheet for EPUB layout.
-XDisable document styles for EPUB layout.
-Ocomma separated list of options for output format.See PDF Write Options and Document Writer Options.
fileInput file name. The file can be any of the supported input formats.
[pages]Comma separated list of page ranges. The first page is “1”, and the last page is “N”. The default is “1-N”.