info > DVILJ

🏷️ NAME

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

πŸš€ Quick Reference

Use CaseCommandDescription
Basic conversiondvilj file.dviConverts DVI to PCL output file file.lj
Output to stdoutdvilj -e- file.dviDirects PCL output to standard output for piping
Double-sided printingdvilj -D file.dviPrints even pages first, then odd pages (manual duplex)
Duplex unit printingdvilj -d1 file.dviUses printer duplex unit (long edge binding)
Page range selectiondvilj -f2 -t5 file.dviPrints only pages with TeX page numbers 2 through 5
Set paper sizedvilj -s26 file.dviSelects A4 paper (210mm Γ— 297mm)
Landscape modedvilj -l file.dviPrints in landscape orientation
Magnificationdvilj -m1 file.dviUses magnification 1200 (equivalent to 1200 dpi)
Include PCL file\special{hpfile=file.pcl}Inserts PCL commands at current position
Include PostScript\special{psfile=file.ps llx=0 lly=0 urx=100 ury=100 rwi=200}Converts EPS via Ghostscript and inserts

πŸ› οΈ 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.

filename The DVI file name that shall be converted by dvilj. It must always be seekable. The output file name is constructed from filename: either an extension ".dvi" is replaced by ".lj", or the extension ".lj" is appended. If filename is -, the DVI file is read from standard input and the resulting PCL document is written to standard output.

πŸ’‘ SUPPORTED TeX \special COMMANDS

"\special" commands supported by dvilj have the 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 the equal sign are ignored. The value is either a space separated word, or a quoted string. Both double and single quotes can be used, alternatively. There is no support for quoting quote characters in values.

The following key/value combinations are valid:

The special parser sometimes accepts invalid constructs; output may be damaged.

πŸ” Searching for Included Files

Proper file include specials search the file with kpathsea(3). The search path is configured by variable DVILJINPUTS and, if the file is not found, by TEXINPUTS. "dvilj" is used as the ".PROGRAM" name in texmf.cnf for all driver variants.

⚠️ Unknown Specials and "TEX_HUSH" configuration

Kpathsea(3) has the concept of warning suppression with the configuration variable TEX_HUSH. If "special" is among the listed values, dvilj does not output warnings about unknown specials. But recognized specials with invalid parameters still produce warnings.

πŸ”„ DOUBLE PAGE PRINTING

If the printer has a duplex unit installed, duplex printing can be demanded with the -d option.

Otherwise, the command line option -D causes the printer to print in doublepage mode: first the even pages, then the odd pages. If -D is used without 1 or 2, after half the pages the printer stops and shows "FEED". The operator must feed the printed pages into the manual feeder or press continue.

If -D1 is specified only odd pages will be printed, -D2 for even pages. A trailing - (as in -D-, -D1- or -D2-) suppresses printing of empty padding pages.

The driver tries to be clever: when a document has an odd number of pages it inserts an empty page in the right place; when a document starts with page 0 the driver inserts an empty page after the 0‑page; when a piece of a document starts with an even page number it prints this page at the backside of the first page to ensure odd sides are always on the frontside.

The doubleside option works for all LJs, not only for the D model. Frequent use may require more frequent printer cleaning. The -pX option can be used to abort printing after X pages but may give strange results with -D.

🌍 ENVIRONMENT

dvilj uses the same environment variables and algorithms for finding font files as TeX and its friends. See the documentation for the kpathsea(3) library for details.

πŸ”— 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 is at http://mirror.ctan.org/dviware/dviljk/; for compilation the texk build environment is needed, from svn://tug.org/texlive/*/Build/source.

As of July 2007, PCL reference documentation is found at HP's Web site: http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568. At the end of that page are links to reference manuals for PCL and PJL.

In case that page is changed, PDFs have the form http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl<ID>/bpl<ID>.pdf where <ID> is one of:

πŸ‘€ 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.

DVILJ
🏷️ NAME πŸš€ Quick Reference πŸ› οΈ SYNOPSIS πŸ“– DESCRIPTION βš™οΈ OPTIONS πŸ“„ OPERANDS πŸ’‘ SUPPORTED TeX \special COMMANDS
πŸ” Searching for Included Files ⚠️ Unknown Specials and "TEX_HUSH" configuration
πŸ”„ DOUBLE PAGE PRINTING 🌍 ENVIRONMENT πŸ”— SEE ALSO πŸ‘€ AUTHOR πŸ“œ LICENSE

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 21:44 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!