1dpost(1) User Commands dpost(1)
2
3
4
6 dpost - troff postprocessor for PostScript printers
7
9 dpost [-c num] [-e num] [-m num] [-n num] [-o list]
10 [-w num] [-x num] [-y num] [-F dir] [-H dir]
11 [-L file] [-O] [-T name] [file]...
12
13
14 /usr/lib/lp/postscript/dpost
15
16
18 dpost translates files created by troff(1) into PostScript and writes
19 the results on the standard output. If no files are specified, or if −
20 is one of the input files, the standard input is read.
21
22
23 The files should be prepared by troff. The default font files in
24 /usr/lib/font/devpost produce the best and most efficient output. They
25 assume a resolution of 720 dpi, and can be used to format files by
26 adding the -Tpost option to the troff call. Older versions of the eqn
27 and pic preprocessors need to know the resolution that troff will be
28 using to format the files. If those are the versions installed on your
29 system, use the -r720 option with eqn and -T720 with pic.
30
31
32 dpost makes no assumptions about resolutions. The first x res command
33 sets the resolution used to translate the input files, the DESC.out
34 file, usually /usr/lib/font/devpost/DESC.out, defines the resolution
35 used in the binary font files, and the PostScript prologue is responsi‐
36 ble for setting up an appropriate user coordinate system.
37
39 -c num Print num copies of each page. By default only one copy is
40 printed.
41
42
43 -e num Sets the text encoding level to num. The recognized choices
44 are 0, 1, and 2. The size of the output file and print time
45 should decrease as num increases. Level 2 encoding will typ‐
46 ically be about 20 percent faster than level 0, which is the
47 default and produces output essentially identical to previ‐
48 ous versions of dpost.
49
50
51 -m num Magnify each logical page by the factor num. Pages are
52 scaled uniformly about the origin, which is located near the
53 upper left corner of each page. The default magnification is
54 1.0.
55
56
57 -n num Print num logical pages on each piece of paper, where num
58 can be any positive integer. By default, num is set to 1.
59
60
61 -o list Print those pages for which numbers are given in the comma-
62 separated list. The list contains single numbers N and
63 ranges N1−N2. A missing N1 means the lowest numbered page, a
64 missing N2 means the highest. The page range is an expres‐
65 sion of logical pages rather than physical sheets of paper.
66 For example, if you are printing two logical pages to a
67 sheet, and you specified a range of 4, then two sheets of
68 paper would print, containing four page layouts. If you
69 specified a page range of 3-4, when requesting two logical
70 pages to a sheet; then only page 3 and page 4 layouts would
71 print, and they would appear on one physical sheet of paper.
72
73
74 -p mode Print files in either portrait or landscape mode. Only the
75 first character of mode is significant. The default mode is
76 portrait.
77
78
79 -w num Set the line width used to implement troff graphics commands
80 to num points, where a point is approximately 1/72 of an
81 inch. By default, num is set to 0.3 points.
82
83
84 -x num Translate the origin num inches along the positive x axis.
85 The default coordinate system has the origin fixed near the
86 upper left corner of the page, with positive x to the right
87 and positive y down the page. Positive num moves everything
88 right. The default offset is 0 inches.
89
90
91 -y num Translate the origin num inches along the positive y axis.
92 Positive num moves text up the page. The default offset is
93 0.
94
95
96 -F dir Use dir as the font directory. The default dir is
97 /usr/lib/font, and dpost reads binary font files from direc‐
98 tory /usr/lib/font/devpost.
99
100
101 -H dir Use dir as the host resident font directory. Files in this
102 directory should be complete PostScript font descriptions,
103 and must be assigned a name that corresponds to the appro‐
104 priate two-character troff font name. Each font file is
105 copied to the output file only when needed and at most once
106 during each job. There is no default directory.
107
108
109 -L file Use file as the PostScript prologue which, by default, is
110 /usr/lib/lp/postscript/dpost.ps.
111
112
113 -O Disables PostScript picture inclusion. A recommended option
114 when dpost is run by a spooler in a networked environment.
115
116
117 -T name Use font files for device name as the best description of
118 available PostScript fonts. By default, name is set to post
119 and dpost reads binary files from /usr/lib/font/devpost.
120
121
123 Example 1 Examples of the dpost command.
124
125
126 If the old versions of eqn and pic are installed on your system, you
127 can obtain the best possible looking output by issuing a command line
128 such as the following:
129
130
131 example% pic -T720 file | tbl | eqn -r720 | troff -mm -Tpost | dpost
132
133
134
135
136 Otherwise,
137
138
139 example% pic file | tbl | eqn | troff -mm -Tpost | dpost
140
141
142
143
144 should give the best results.
145
146
148 The following exit values are returned:
149
150 0 Successful completion.
151
152
153 non-zero An error occurred.
154
155
157 /usr/lib/font/devpost/*.out
158
159
160
161
162 /usr/lib/font/devpost/charlib/*
163
164
165
166
167 /usr/lib/lp/postscript/color.ps
168
169
170
171
172 /usr/lib/lp/postscript/draw.ps
173
174
175
176
177 /usr/lib/lp/postscript/forms.ps
178
179
180
181
182 /usr/lib/lp/postscript/ps.requests
183
184
185
186
187 /usr/lib/macros/pictures
188
189
190
191
192 /usr/lib/macros/color
193
194
195
196
198 See attributes(5) for descriptions of the following attributes:
199
200
201
202
203 ┌─────────────────────────────┬─────────────────────────────┐
204 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
205 ├─────────────────────────────┼─────────────────────────────┤
206 │Availability │SUNWpsf │
207 └─────────────────────────────┴─────────────────────────────┘
208
210 download(1), postdaisy(1), postdmd(1), postio(1), postmd(1), post‐
211 print(1), postreverse(1), posttek(1), troff(1), attributes(5)
212
214 Output files often do not conform to Adobe's file structuring conven‐
215 tions. Piping the output of dpost through postreverse(1) should produce
216 a minimally conforming PostScript file.
217
218
219 Although dpost can handle files formatted for any device, emulation is
220 expensive and can easily double the print time and the size of the out‐
221 put file. No attempt has been made to implement the character sets or
222 fonts available on all devices supported by troff. Missing characters
223 will be replaced by white space, and unrecognized fonts will usually
224 default to one of the Times fonts (that is, R, I, B, or BI).
225
226
227 An x res command must precede the first x init command, and all the
228 input files should have been prepared for the same output device.
229
230
231 Use of the -T option is not encouraged. Its only purpose is to enable
232 the use of other PostScript font and device description files, that
233 perhaps use different resolutions, character sets, or fonts.
234
235
236 Although level 0 encoding is the only scheme that has been thoroughly
237 tested, level 2 is fast and may be worth a try.
238
239
240
241SunOS 5.11 9 Sep 1996 dpost(1)