draw command will render a document to image files, convert to another vector format, or extract the text content.
The supported input document formats are:
The supported output image formats are:
The supported output vector formats are:
The supported output text formats are:
html, and structured text (as
mutool draw [options] file [pages]
Command line parameters within square brackets
 are optional.
Options are as follows:
Use the specified password if the file is encrypted.
The 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 to
Enforce a specific output format. Only necessary when outputting to
stdoutsince normally the output filename is used to infer the output format.
Rotate clockwise by given number of degrees.
Render the page at the specified resolution. The default resolution is 72 dpi.
Render the page at the specified width (or, if the
-rflag is used, render with a maximum width).
Render the page at the specified height (or, if the
-rflag is used, render with a maximum height).
Fit exactly; ignore the aspect ratio when matching specified width/heights.
Render in banded mode with each band no taller than the given height. This uses less memory during rendering. Only compatible with
pngoutput formats. Banded rendering and md5 checksumming may not be used at the same time.
Page width in points for EPUB layout.
Page height in points for EPUB layout.
Font size in points for EPUB layout.
User CSS stylesheet for EPUB layout.
Disable document styles for EPUB layout.
Render in the specified colorspace. Supported colorspaces are:
cmykalpha. Some abbreviations are allowed:
cmyka. The default is chosen based on the output format.
Apply gamma correction. Some typical values are 0.7 or 1.4 to thin or darken text rendering.
Show various bits of information:
mfor glyph cache and total memory usage,
ffor page features such as whether the page is grayscale or color,
tfor per page rendering times as well statistics, and
5for md5 checksums of rendered images that can be used to check if rendering has changed.
Specify how many bits of anti-aliasing to use. The default is
0means no anti-aliasing,
9means no anti-aliasing, centre-of-pixel rule,
10means no anti-aliasing, any-part-of-a-pixel rule.
Disable use of display lists. May cause slowdowns, but should reduce the amount of memory used.
Low memory mode (avoid caching objects by clearing cache after each page).
Run interpretation and rendering at the same time.
Input file name. The input can be any of the document formats supported by MuPDF.
Comma separated list of page ranges. The first page is “1”, and the last page is “N”. The default is “1-N”.
This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco, CA 94129, USA, for further information.