9070 Remove wanboot from gate
[unleashed.git] / usr / src / man / man1 / postprint.1
blobe28054b1d67e846e6f8fb1fdb390bd8a0c65575e
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1996 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH POSTPRINT 1 "May 13, 2017"
7 .SH NAME
8 postprint \- PostScript translator for text files
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBpostprint\fR [\fB-c\fR \fInum\fR] [\fB-f\fR \fIname\fR] [\fB-l\fR \fInum\fR] [\fB-m\fR \fInum\fR] [\fB-n\fR \fInum\fR]
13      [\fB-o\fR \fIlist\fR] [\fB-p\fR \fImode\fR] [\fB-r\fR \fInum\fR] [\fB-s\fR \fInum\fR] [\fB-t\fR \fI num\fR]
14      [\fB-x\fR \fInum\fR] [\fB-y\fR \fInum\fR] [\fIfile\fR]...
15 .fi
17 .LP
18 .nf
19 \fB/usr/lib/lp/postscript/postprint\fR
20 .fi
22 .SH DESCRIPTION
23 .LP
24 The \fBpostprint\fR filter translates text \fIfiles\fR into PostScript and
25 writes the results on the standard output. If no \fIfiles\fR are specified, or
26 if \fB\(mi\fR is one of the input \fIfiles\fR, the standard input is read.
27 .SH OPTIONS
28 .ne 2
29 .na
30 \fB\fB-c\fR\fI num\fR\fR
31 .ad
32 .RS 11n
33 Print \fInum\fR copies of each page. By default, only one copy is printed.
34 .RE
36 .sp
37 .ne 2
38 .na
39 \fB\fB-f\fR\fI name\fR\fR
40 .ad
41 .RS 11n
42 Print \fIfiles\fR using font \fIname\fR. Any PostScript font can be used,
43 although the best results will be obtained only with constant width fonts. The
44 default font is Courier.
45 .RE
47 .sp
48 .ne 2
49 .na
50 \fB\fB-l\fR\fI num\fR\fR
51 .ad
52 .RS 11n
53 Set the length of a page to \fInum\fR lines. By default, \fInum\fR is \fB66\fR.
54 Setting \fInum\fR to \fB0\fR is allowed, and will cause \fBpostprint\fR to
55 guess a value, based on the point size that's being used.
56 .RE
58 .sp
59 .ne 2
60 .na
61 \fB\fB-m\fR\fI num\fR\fR
62 .ad
63 .RS 11n
64 Magnify each logical page by the factor \fInum\fR. Pages are scaled uniformly
65 about the origin, which is located near the upper left corner of each page. The
66 default magnification is \fB1.0\fR.
67 .RE
69 .sp
70 .ne 2
71 .na
72 \fB\fB-n\fR\fI num\fR\fR
73 .ad
74 .RS 11n
75 Print \fInum\fR logical pages on each piece of paper, where \fInum\fR can be
76 any positive integer. By default, \fInum\fR is set to \fB1\fR.
77 .RE
79 .sp
80 .ne 2
81 .na
82 \fB\fB-o\fR\fI list\fR\fR
83 .ad
84 .RS 11n
85 Print pages whose numbers are given in the comma-separated \fIlist\fR. The
86 \fIlist\fR contains single numbers \fIN\fR and ranges \fIN1 \fR\(mi\fI N2\fR. A
87 missing \fIN1\fR means the lowest numbered page, a missing \fIN2\fR means the
88 highest. The page range is an expression of logical pages rather than physical
89 sheets of paper. For example, if you are printing two logical pages to a
90 sheet, and you specified a range of \fB4\fR, then two sheets of paper would
91 print, containing four page layouts. If you specified a page range of
92 \fB3-4\fR, when requesting two logical pages to a sheet; then \fIonly\fR page
93 3 and page 4 layouts would print, and they would appear on one physical sheet
94 of paper.
95 .RE
97 .sp
98 .ne 2
99 .na
100 \fB\fB-p\fR\fI mode\fR\fR
102 .RS 11n
103 Print \fIfiles\fR in either portrait or landscape \fImode\fR. Only the first
104 character of \fImode\fR is significant. The default \fImode\fR is portrait.
108 .ne 2
110 \fB\fB-r\fR\fI num\fR\fR
112 .RS 11n
113 Selects carriage return behavior. Carriage returns are ignored if \fInum\fR is
114 \fB0\fR, cause a return to column 1 if \fInum\fR is \fB1\fR, and generate a
115 newline if \fInum\fR is \fB2\fR. The default \fInum\fR is \fB0\fR.
119 .ne 2
121 \fB\fB-s\fR\fI num\fR\fR
123 .RS 11n
124 Print \fIfiles\fR using point size \fInum\fR. When printing in landscape mode
125 \fInum\fR is scaled by a factor that depends on the imaging area of the device.
126 The default size for portrait mode is \fB10\fR. Note that increasing point
127 size increases virtual image size, so you either need to load larger paper, or
128 use the \fB\(mil0\fR option to scale the number of lines per page.
132 .ne 2
134 \fB\fB-t\fR\fI num\fR\fR
136 .RS 11n
137 Assume tabs are set every \fInum\fR columns, starting with the first column. By
138 default, tabs are set every \fB8\fR columns.
142 .ne 2
144 \fB\fB-x\fR\fI num\fR\fR
146 .RS 11n
147 Translate the origin \fInum\fR inches along the positive x axis. The default
148 coordinate system has the origin fixed near the upper left corner of the page,
149 with positive x to the right and positive y down the page. Positive \fInum\fR
150 moves everything to the right. The default offset is \fB0.25\fR inches.
154 .ne 2
156 \fB\fB-y\fR\fI num\fR\fR
158 .RS 11n
159 Translate the origin \fInum\fR inches along the positive y axis. Positive
160 \fInum\fR moves text up the page. The default offset is \fB\(mi0.25\fR inches.
165 A new logical page is started after 66 lines have been printed on the current
166 page, or whenever an ASCII form feed character is read. The number of lines
167 per page can be changed using the \fB-l\fR option. Unprintable ASCII characters
168 are ignored, and lines that are too long are silently truncated by the printer.
169 .SH EXAMPLES
171 \fBExample 1 \fRExamples of \fBpostprint\fR.
174 To print \fIfile1\fR and \fIfile2\fR in landscape mode, issue the following
175 command:
178 .in +2
180 \fBexample% postprint \fR\fB-pland\fR\fB \fR\fIfile1 file2\fR
182 .in -2
187 To print three logical pages on each physical page in portrait mode:
190 .in +2
192 \fBexample% postprint \fR\fB-n3\fR\fB \fR\fBfile\fR
194 .in -2
197 .SH EXIT STATUS
199 The following exit values are returned:
201 .ne 2
203 \fB\fB0\fR\fR
205 .RS 12n
206 Successful completion.
210 .ne 2
212 \fBnon-zero\fR
214 .RS 12n
215 An error occurred.
218 .SH FILES
219 .ne 2
221 \fB\fB/usr/lib/lp/postscript/forms.ps\fR\fR
223 .sp .6
224 .RS 4n
229 .ne 2
231 \fB\fB/usr/lib/lp/postscript/ps.requests\fR\fR
233 .sp .6
234 .RS 4n
238 .SH SEE ALSO
240 \fBdownload\fR(1), \fBdpost\fR(1), \fBpostio\fR(1), \fBpostreverse\fR(1),
241 \fBattributes\fR(5)