DPCL(1)

NAME
dpcl - troff postprocessor for PCL-based printers

SYNOPSIS
dpcl [ options []] [ files []]

DESCRIPTION
dpcl translates files created by troff(1) into PCL and writes the results on the standard output. If no files are specified, or if [-] is one of the input files, the standard input is read. The following options are understood:

[-c num]
Print
    num copies of each page. By default only one copy is printed.

    [-o list]
Print pages whose numbers are given in the comma-separated
    list. The list contains single numbers N and ranges N1-N2. A missing N1 means the lowest numbered page, a missing N2 means the highest.

    [-p mode]
Print
    files in either portrait or landscape mode. Only the first character of mode is significant. The default mode is portrait.

    [-r]
Do not output
    PCL reset sequences at the start and end of each job.

    [-s]
Download complete raster files, rather than individual character
    bitmaps. This results in significantly larger output files that should match PCL output generated by older versions of dpcl.

    [-x num]
Translate the origin
    num inches along the positive x axis. The default coordinate system has the origin fixed near the upper left corner of the page, with positive x to the right and positive y down the page. Positive num moves everything right. The default offset is 0 inches.

    [-y num]
Translate the origin
    num inches along the positive y axis. Positive num moves text down the page. The default offset is 0.

    [-F dir]
Use dir as the font directory. The default dir is /tmp/pkgbuild/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font(,) and dpcl reads ASCII font files from directory /tmp/pkgbuild/textproc/DWB/work/.destdir/usr/pkg/DWB/lib/font/devpcl(.)

    [-R dir]
Use dir as the raster table directory. The default dir is $DPCLRASTER(,) and dpcl reads raster files from directory $DPCLRASTER/rastpcl(.)

-Tname
    Use font and raster files for device name when files are translated. The default name is and dpcl reads ASCII font files from and host resident raster files from $DPCLRASTER/rastpcl(.)

All files should be prepared by troff for the same device. The default font files and raster tables assume a 300-dpi write-black printer. dpcl downloads individual character bitmaps as they are needed, rather than downloading complete raster files.

EXAMPLES

A typical command line might be:
    pic file | tbl | eqn | troff -mm -Tpcl | dpcl

DIAGNOSTICS
0 exit status is returned if files were successfully translated, while 2 often indicates a syntax error in the input files.

WARNINGS

Output produced by dpcl can only be printed on PCL-based printers that accept downloadable fonts. The default font and raster files are for a 300-dpi write-black printer.

Emulation is expensive and does not always produce satisfactory results. No attempt has been made to implement the character sets or fonts available on all devices supported by troff. Missing characters are replaced by white space, and unrecognized fonts default to one of the Times fonts (i.e., R(,) I(,) B(,) or BI().)

FILES

SEE ALSO
troff(1), font(5), troff(5)