DPOST(1) | User Commands | DPOST(1) |
dpost - troff postprocessor for PostScript printers
dpost [-c num] [-e num] [-m num] [-n num] [-o list]
[-w num] [-x num] [-y num] [-F dir] [-H dir]
[-L file] [-O] [-T name] [file]...
/usr/lib/lp/postscript/dpost
dpost translates files created by troff(1) into PostScript 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 files should be prepared by troff. The default font files in /usr/lib/font/devpost produce the best and most efficient output. They assume a resolution of 720 dpi, and can be used to format files by adding the -Tpost option to the troff call. Older versions of the eqn and pic preprocessors need to know the resolution that troff will be using to format the files. If those are the versions installed on your system, use the -r720 option with eqn and -T720 with pic.
dpost makes no assumptions about resolutions. The first x res command sets the resolution used to translate the input files, the DESC.out file, usually /usr/lib/font/devpost/DESC.out, defines the resolution used in the binary font files, and the PostScript prologue is responsible for setting up an appropriate user coordinate system.
-c num
-e num
-m num
-n num
-o list
-p mode
-w num
-x num
-y num
-F dir
-H dir
-L file
-O
-T name
Example 1 Examples of the dpost command.
If the old versions of eqn and pic are installed on your system, you can obtain the best possible looking output by issuing a command line such as the following:
example% pic -T720 file | tbl | eqn -r720 | troff -mm -Tpost | dpost
Otherwise,
example% pic file | tbl | eqn | troff -mm -Tpost | dpost
should give the best results.
The following exit values are returned:
0
non-zero
/usr/lib/font/devpost/*.out
/usr/lib/font/devpost/charlib/*
/usr/lib/lp/postscript/color.ps
/usr/lib/lp/postscript/draw.ps
/usr/lib/lp/postscript/forms.ps
/usr/lib/lp/postscript/ps.requests
download(1), postio(1), postprint(1), postreverse(1), troff(1), attributes(7)
Output files often do not conform to Adobe's file structuring conventions. Piping the output of dpost(1) through postreverse(1) should produce a minimally conforming PostScript file.
Although dpost can handle files formatted for any device, emulation is expensive and can easily double the print time and the size of the output file. No attempt has been made to implement the character sets or fonts available on all devices supported by troff. Missing characters will be replaced by white space, and unrecognized fonts will usually default to one of the Times fonts (that is, R, I, B, or BI).
An x res command must precede the first x init command, and all the input files should have been prepared for the same output device.
Use of the -T option is not encouraged. Its only purpose is to enable the use of other PostScript font and device description files, that perhaps use different resolutions, character sets, or fonts.
Although level 0 encoding is the only scheme that has been thoroughly tested, level 2 is fast and may be worth a try.
May 13, 2017 | OmniOS |