man > dvipdfmx(1)

📖 NAME

dvipdfmx, xdvipdfmx, dvipdfm — produce PDF files directly from DVI files đŸŽ¯

🚀 Quick Reference

Use CaseCommandDescription
Convert DVI to PDFdvipdfmx file.dvi📄 Basic conversion, output file.pdf
Specify output filenamedvipdfmx -o output.pdf file.dvi📝 Custom output name
Select specific pagesdvipdfmx -s 1-5 file.dvi📑 Pages 1–5 only
Landscape modedvipdfmx -l file.dvi🔄 Swap x/y dimensions
Set paper sizedvipdfmx -p a4 file.dvi📐 Choose paper (letter, a4, â€Ļ)
Magnify documentdvipdfmx -m 1000 file.dvi🔍 Apply magnification factor
Quiet modedvipdfmx -q file.dvi🔇 Suppress messages
Increase verbositydvipdfmx -vv file.dviđŸ“ĸ Debug output (max 4 levels)
Compression leveldvipdfmx -z 9 file.dviđŸ—œī¸ Set zlib compression (0–9)
Use dvipdfm compatibilitydvipdfmx --dvipdfm file.dvi🔄 Emulate dvipdfm behavior

📋 SYNOPSIS

dvipdfmx or dvipdfm [options] file[.dvi]

📝 DESCRIPTION

The program dvipdfmx generates a PDF file from a DVI file. DVI files are the output produced by TeX. groff can also generate DVI files using grodvi (-Tdvi).

In TeX Live, dvipdfm is another incarnation of dvipdfmx rather than a separate program. Compatibility is attempted as best as possible.

xdvipdfmx is another incarnation. It is used as the back end for xetex(1) and is not intended to be invoked directly.

dvipdfmx recognizes several commonly used \special commands, which are extensions to the DVI format. Specifically, it understands color specials, papersize specials, tpic specials (which allow it to be used with pic), hypertex specials, and some PostScript specials. These extensions allow documents to contain color, figures, and hyperlinks. The program tries to mimic the behavior of dvips where possible, so that many macro packages produced for use with dvips will also work with dvipdfmx. In addition, dvipdfmx understands its own specific \special commands to allow access to PDF features such as annotations and bookmarks.

As of December 2018, one such special specific to dvipdfmx is pdf:trailerid, which specifies the /ID in the PDF trailer. It is used like this (from the TeX level):

\special{pdf:trailerid [ (0123456789abcdef) (01234567890abcdef) ]}

That is, the special takes an array (the square brackets) of two 16-byte PDF strings (the parentheses). This is the same syntax as LuaTeX's \pdfvariable trailerid, while different from pdfTeX's \pdftrailerid. It must appear on the first output page, otherwise it is ignored.

Unrecognized specials will generate warning messages. Packages that may need a dvipdfm or dvipdfmx driver option include geometry, hyperref, bookmark, graphicx, and xcolor.

For issues related to bounding boxes (and hence image sizes), see extractbb(1).

âš™ī¸ OPTIONS

Unlike with many other programs, argument values must be separated from option names by a space, not an = sign; option names cannot be abbreviated; and - and -- cannot be used interchangeably.

đŸ–ŧī¸ IMAGE BOUNDING BOXES

When including images with dvipdfmx, their bounding boxes should be generated by running extractbb. The result will be in an .xbb file; the xbb information is the same as for the PDF format. đŸ“Ļ

🌍 ENVIRONMENT

dvipdfmx uses the kpathsea library for locating the files that it opens. Hence, the environment variables documented in the Kpathsea library documentation influence dvipdfmx. It also uses the value of the environment variable TMPDIR as the directory to search for thumbnail images of each page. 📂

📁 FILES

The precise location of the following files is determined by the Kpathsea library configuration. The location may be determined by using kpsewhich, e.g.,

kpsewhich -progname=dvipdfmx -format='other text files' dvipdfmx.cfg

🔗 SEE ALSO

dvipdft(1), extractbb(1), tex(1), luatex(1), xetex(1), dvips(1), groff(1), grodvi(1), pic(1), the Kpathsea library Info documentation (https://tug.org/kpathsea), and the Dvipdfmx User's Manual (in the distribution, and linked from https://tug.org/dvipdfmx). 📚

👤 AUTHOR

Primarily Mark A. Wicks; dvipdfmx extensions primarily by Jin-Hwan Cho, Shunsaku Hirata, and Matthias Franz. For the version in TeX Live, please send bugs and other reports to the maintainers at dvipdfmx (at) tug.org (https://lists.tug.org/dvipdfmx).

This man page edited for TeX Live by Bob Tennent and others. This man page is public domain. 📄

dvipdfmx(1)
📖 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION âš™ī¸ OPTIONS
🔹 -c 🔹 --dvipdfm 🔹 -d number 🔹 -e 🔹 -f map_file 🔹 --help 🔹 -i cfgfile 🔹 -l 🔹 -m mag 🔹 -o filename 🔹 -p paper 🔹 -q 🔹 -r size 🔹 -s page_specifications 🔹 -t 🔹 --version 🔹 -v 🔹 --kpathsea-debug number 🔹 -x x_offset 🔹 -y y_offset 🔹 -z number 🔹 -C number 🔹 -D template 🔹 -E 🔹 -I number 🔹 -K number 🔹 -M 🔹 -O number 🔹 -P number 🔹 -S 🔹 -V number
đŸ–ŧī¸ IMAGE BOUNDING BOXES 🌍 ENVIRONMENT 📁 FILES 🔗 SEE ALSO 👤 AUTHOR

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 06:56 @216.73.216.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^