summaryrefslogtreecommitdiff
path: root/static/v10/man8/postscript.8
blob: 2143c6b256454b68e31fdfcc864d46e6341c5507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
.TH POSTSCRIPT 8
.CT 1 sa_auto
.SH NAME
dpost, postdaisy, postdmd, postprint \- filters to produce postscript
.SH SYNOPSIS
.B /usr/bin/postscript/dpost
[
.I option ...
] [
.I file ...
]
.PP
.B /usr/bin/postscript/postdaisy
[
.I option ...
] [
.I file ...
]
.PP
.B /usr/bin/postscript/postdmd
[
.I option ...
] [
.I file ...
]
.PP
.B /usr/bin/postscript/postprint
[
.I option ...
] [
.I file ...
]
.PP
.B /usr/bin/postscript/posttek
[
.I option ...
] [
.I file ...
]
.SH DESCRIPTION
These programs convert files of various formats into
PostScript.
The input formats are
.nr xx \w'\fL-p\ \fImode\ 'u
.TP \n(xxu
.I dpost
.IR troff (1)
output
.TP
.I postdaisy
Diablo 1640 daisy-wheel
.TP
.I postdmd
.IR bitfile (9.5)
files, as produced by
.IR blitblt (9.1)
.TP
.I postprint
.SM
ASCII
text
.TP
.I posttek
Tektronix 4014 graphics
.PP
Except as noted,
the options are common to all the programs:
.TP \n(xxu
.BI \-c num
Print
.I num
copies of each page.
By default only one copy is printed.
.TP
.BI \-m num
Magnify each logical page by the factor
.I num.
Pages are scaled uniformly about the origin,
located near the upper left corner of
the page.
The default magnification is 1.0.
.TP
.BI \-n num
Print
.I num
logical pages on each piece of paper.
The default is 1.
.TP
.BI \-o list
Print only pages specified in
the comma-separated
.I list
of numbers and ranges.
A range
.IB N - M
means pages
.I N
through
.IR M ;
an initial
.BI - N
means
from the beginning to page
.IR N ;
and a final
.IB N -
means
from
.I N
to the end.
Print only pages whose numbers are given in the comma-separated
.IR list .
The list contains single numbers
.I N
and ranges
.IB N1 \- N2.
A missing 
.I N1
means the lowest numbered page, a missing
.I N2
means the highest.
.TP
.BI \-p mode
Print
in
.I mode
.B p
(portrait)
or
.B l
(landscape).
The default is
.BR p .
.TP
.BI \-x num
Translate the origin
.I num
inches along the positive x axis.
By default,
the origin is
fixed near the
upper left corner of the page, with positive
x to the right and positive y down the page.
Positive
.I num
moves everything right.
The default offset is 0 inches.
.TP
.BI \-y num
Translate the origin
.I num
inches along the positive y axis.
Positive
.I num
moves text down the page.
The default offset is 0.
.TP
.BI \-A file
Append a simple accounting record to
.I file
after all input
.I files
have been successfully translated.
By default no accounting data is produced.
.TP
.BI \-L file
Use
.I file
as the PostScript prologue.
.TP
.BI \-f name
Print
.I files
using font
.I name.
Any PostScript font can be used,
but constant width fonts yield the best results.
The default font is Courier.
.RI ( postdaisy,
.IR postprint,
and
.IR posttek
only)
.TP
.BI \-f
Flip the sense of the bits in
.I files
before printing the bitmaps.
.RI ( postdmd
only)
.PP
In addition, three options allow the insertion of arbitrary PostScript
at controlled points in the translation process:
.TP \n(xxu
.BI \-C file
Copy
.I file
to the output file.
.I File
follows the prologue but
precedes any job initialization commands.
.I File
becomes part of the job's global environment
and must contain legitimate PostScript commands.
.TP
.BI \-P string
Like
.BR -C ,
using a
.I string
instead of the contents of a file.
.TP
.BI \-R action
Requests special
.I action
(e.g. manualfeed) on a per page or global basis.
The
.I action
string has the general form
.IB request : page : file,
from which 
.BI : page : file
or
.B : file
can be omitted.
An omitted or 0 page number
applies to all pages.
If file is omitted the request
lookup is done in 
.FR /usr/lib/postscript/ps.requests .
The collection of recognized requests can be modified or extended
by changing this file.
Multiple occurrences of the
.B \-R
option behave as expected.
.SH FILES
.TF /usr/lib/font/devpost/charlib/*
.TP
.F /usr/lib/font/devpost/*.out
.TP
.F /usr/lib/font/devpost/charlib/*
.TP
.F /usr/lib/postscript/*.ps
default prologues 
.TP
.F /usr/lib/tmac/tmac.pictures
.I troff
macros for PostScript
.SH SEE ALSO
.IR lp (1),
.IR postio (8)
.SH DIAGNOSTICS
Exit status 2
usually means a syntax error in some input file.
.SH BUGS
Output files
will often violate Adobe's
file structuring conventions.
Pipe the output of
.I dpost
through
.I postreverse
to produce a minimally conforming PostScript file.
.PP
Although
.I dpost
can handle files formatted for any 
.IR troff
device, emulation is expensive and
can easily double the print time and the size of the output file.
.PP
No attempt has been made to implement the character sets
or fonts available on all devices supported by
.I troff.
Missing characters are replaced by white space;
unrecognized fonts are replaced by one of the Times fonts.
.PP
.I Dpost
requires an
.B x res
command before the first
.B x init
and any file data.