man > dvilj6(1)

๐Ÿ“› NAME

dvilj4, dvilj4l, dvilj2p, dvilj - convert a TeX DVI file to PCL, for HP LaserJet printers

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Basic conversiondvilj4 file.dviConvert DVI to PCL, output file.lj
Send output to stdoutdvilj4 -e- file.dviPipe output directly to spooler
Print multiple copiesdvilj4 -c3 file.dviPrint each page 3 times
Duplex printing (hardware)dvilj4 -d1 file.dviLong edge binding duplex
Double-sided (manual)dvilj4 -D file.dviPrint even pages, then odd
Select paper sizedvilj4 -s26 file.dviA4 paper size
Landscape modedvilj4 -l file.dviLandscape orientation
Page rangedvilj4 -f10 -t20 file.dviPrint pages 10-20
Magnificationdvilj4 -m1200 file.dviScale to 1200 dpi equivalent
Quiet modedvilj4 -q file.dviSuppress final statistics
Include PCL fileInside TeX: \special{hpfile=logo.pcl}Insert PCL commands at current position

๐Ÿ“‹ SYNOPSIS

dvilj [--Dnumber] [-ccopies] [-dmode] [-D] [-E] [-eoutputfile]
      [-ffrompage] [-g] [-hheaderfile] [-l] [-Mflag] [-mmag] [-ppages]
      [-q] [-r] [-ttopage] [-spagesize] [-v] [-Vmode] [-w] [-xxoff(mm)]
      [-yyoff(mm)] [-Xxoff(dots)] [-Yyoff(dots)] [-z] [filename]

๐Ÿ“– DESCRIPTION

dvilj and siblings convert TeX-output ".dvi" files into PCL (the Hewlett-Packard Printer Control Language) commands suitable for printing on a HP LaserJet+, HP LaserJet IIP (using dvilj2p), HP LaserJet 4 (using dvilj4), and fully compatible printers.

dvilj4 also provides support for the builtin Intellifont and TrueType fonts; TFM and VF files are provided in the distribution. Virtual fonts are not supported directly by dvilj, so you must run dvicopy(1) first, or otherwise expand the virtual fonts.

All programs are generated from one source file dvi2xx.c. They are usually called via a shell script or as a line printer filter. One such script, dvihp(1), is included in the distribution. It provides command-line options similar to those of dvips(1).

โš™๏ธ OPTIONS

๐Ÿ“‚ OPERANDS

If no operands are specified a brief usage message is displayed.

๐ŸŽฏ SUPPORTED TeX \special COMMANDS

\special commands have generic syntax:

\special{key1=value key1="value with space"}
\special{key3 = value key4 = 'note optional spaces around equal sign'}

Specials are a sequence of key/value pairs separated by an equal sign. Spaces around equal sign are ignored. Value is either a space-separated word or a quoted string (double or single quotes). No quoting of quote characters in values.

Valid key/value combinations:

๐Ÿ“Ž hpfile=file

Insert file at current position. File searched with kpathsea(3). File must contain PCL escape sequences or HP-GL/2 commands. Absolute PCL positioning is rewritten to relative.

๐Ÿ“Ž hpfile_verbatim=file

Insert file verbatim without changes. File searched with kpathsea(3). Used to keep absolute positions.

๐Ÿ–ผ๏ธ psfile=file llx=x0 lly=y0 urx=x1 ury=y1 rwi=s

Convert PostScript file to HP PCL via Ghostscript (device "ljetplus") and insert at current position. Mandatory keys: llx, lly, urx, ury, rwi (all integers). Note: Exact semantics of rwi and corner dimensions are unclear; please report if you know.

๐Ÿ”ง dvilj-psfile-syntax=syntax

Where syntax is "dvilj" or "ignore". Crude control over psfile processing. "ignore" skips subsequent psfile specials; "dvilj" processes them. Only effective on the same page as the psfile special.

๐Ÿ’ฌ comment=arbitrary text or comment arbitrary text

Rest of special is ignored. Used for meta-information. Second form is for compatibility.

๐ŸŒ„ orientation=po

Position page on physical paper: 0 = portrait, 1 = landscape, 2 = reverse portrait, 3 = reverse landscape.

๐Ÿ“ defpoint=n(x,y)

Define point number n (0-79). x and y are in pt relative to DVI page origin (1in,1in upper left, altered by -x, -y, -X, -Y but not by \hoffset/\voffset). Can be omitted to use current position.

๐Ÿ—‘๏ธ resetpoints="all"

Undefine all points.

๐ŸŽจ gray=gray_scale / grey=gray_scale

Set fill mode for next fill special. gray_scale is percentage (0=white, 100=black). PCL shading patterns: only 8 patterns available: 1-2% (1-2), 3-10% (3-10), 11-20% (11-20), 21-35% (21-35), 36-55% (36-55), 56-80% (56-80), 81-99% (81-99), 100%.

๐Ÿงฉ pattern=pat

Set fill mode for next fill. pat: 1=horizontal lines, 2=vertical lines, 3=diagonal (lower left to upper right), 4=diagonal (upper right to lower left), 5=crossed vertical, 6=crossed diagonal.

๐Ÿ–๏ธ fill=a/b

Fill area between points a and b according to current fill mode. a must be upper left corner, b lower left corner. Default fill mode: 10% gray.

๐Ÿ“„ filename (legacy)

Deprecated. If special is just one word naming an existing file, that file is included verbatim (not searched via kpathsea). Do not use.

Note: The special parser sometimes accepts invalid constructs, leading to output damage.

๐Ÿ” Searching for Included Files

Proper file include specials search with kpathsea(3). Search path: "DVILJINPUTS" first, then "TEXINPUTS". Program name in texmf.cnf is "dvilj" for all variants.

โš ๏ธ Unknown Specials and "TEX_HUSH" configuration

Kpathsea(3) has "TEX_HUSH" variable to suppress warnings. If "special" is listed, no warnings about unknown specials. But invalid parameters on recognized specials still warn.

๐Ÿ“„ DOUBLE PAGE PRINTING

If the printer has a duplex unit, use -d. Otherwise, -D enables doublepage mode (print even pages then odd pages). With -D (no number), after half pages printer stops with "FEED" message. Use manual feed or continue button.

Works for all LJs, not only D models. Cautions: frequent use may require more printer cleaning. Use -p to abort after X pages (risky with -D). Prefer -f and -t for partial printing.

๐ŸŒ ENVIRONMENT

dvilj uses same environment variables as TeX for font finding (see kpathsea(3)).

๐Ÿ“š SEE ALSO

dvihp(1), dvicopy(1), dvips(1), xdvi(1), mktexpk(1), gs(1), kpathsea(3)

Email bug reports to tex-k AT tug.org.

Source: http://mirror.ctan.org/dviware/dviljk/ (needs texk build environment).

PCL reference documentation: HP website at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568. Also PDFs at http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl<ID>/bpl<ID>.pdf where is:

โœ๏ธ AUTHOR

dvi2xx by Gustaf Neumann, Wirtschaftsuniversitaet Wien.

dviljk fork by Karl Berry.

Joachim Schrod <jschrod AT acm.org> supplied security fixes and updated this man page.

๐Ÿ“œ LICENSE

dvi2xx is public domain software. dviljk changes are covered by the GNU General Public License.

Version 2.6p5, 2012-03-12

dvilj6(1)
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ OPTIONS ๐Ÿ“‚ OPERANDS ๐ŸŽฏ SUPPORTED TeX \special COMMANDS
๐Ÿ“Ž hpfile=file ๐Ÿ“Ž hpfile_verbatim=file ๐Ÿ–ผ๏ธ psfile=file llx=x0 lly=y0 urx=x1 ury=y1 rwi=s ๐Ÿ”ง dvilj-psfile-syntax=syntax ๐Ÿ’ฌ comment=arbitrary text or comment arbitrary text ๐ŸŒ„ orientation=po ๐Ÿ“ defpoint=n(x,y) ๐Ÿ—‘๏ธ resetpoints="all" ๐ŸŽจ gray=gray_scale / grey=gray_scale ๐Ÿงฉ pattern=pat ๐Ÿ–๏ธ fill=a/b ๐Ÿ“„ filename (legacy) ๐Ÿ” Searching for Included Files โš ๏ธ Unknown Specials and "TEX_HUSH" configuration
๐Ÿ“„ DOUBLE PAGE PRINTING ๐ŸŒ ENVIRONMENT ๐Ÿ“š SEE ALSO โœ๏ธ AUTHOR ๐Ÿ“œ LICENSE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 16:16 @216.73.216.51
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_^