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 "Sep 9, 1996"
8 postprint \- PostScript translator for text files
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]...
19 \fB/usr/lib/lp/postscript/postprint\fR
25 The \fBpostprint\fR filter translates text \fIfiles\fR into PostScript and
26 writes the results on the standard output. If no \fIfiles\fR are specified, or
27 if \fB\(mi\fR is one of the input \fIfiles\fR, the standard input is read.
32 \fB\fB-c\fR\fI num\fR\fR
35 Print \fInum\fR copies of each page. By default, only one copy is printed.
41 \fB\fB-f\fR\fI name\fR\fR
44 Print \fIfiles\fR using font \fIname\fR. Any PostScript font can be used,
45 although the best results will be obtained only with constant width fonts. The
46 default font is Courier.
52 \fB\fB-l\fR\fI num\fR\fR
55 Set the length of a page to \fInum\fR lines. By default, \fInum\fR is \fB66\fR.
56 Setting \fInum\fR to \fB0\fR is allowed, and will cause \fBpostprint\fR to
57 guess a value, based on the point size that's being used.
63 \fB\fB-m\fR\fI num\fR\fR
66 Magnify each logical page by the factor \fInum\fR. Pages are scaled uniformly
67 about the origin, which is located near the upper left corner of each page. The
68 default magnification is \fB1.0\fR.
74 \fB\fB-n\fR\fI num\fR\fR
77 Print \fInum\fR logical pages on each piece of paper, where \fInum\fR can be
78 any positive integer. By default, \fInum\fR is set to \fB1\fR.
84 \fB\fB-o\fR\fI list\fR\fR
87 Print pages whose numbers are given in the comma-separated \fIlist\fR. The
88 \fIlist\fR contains single numbers \fIN\fR and ranges \fIN1 \fR\(mi\fI N2\fR. A
89 missing \fIN1\fR means the lowest numbered page, a missing \fIN2\fR means the
90 highest. The page range is an expression of logical pages rather than physical
91 sheets of paper. For example, if you are printing two logical pages to a
92 sheet, and you specified a range of \fB4\fR, then two sheets of paper would
93 print, containing four page layouts. If you specified a page range of
94 \fB3-4\fR, when requesting two logical pages to a sheet; then \fIonly\fR page
95 3 and page 4 layouts would print, and they would appear on one physical sheet
102 \fB\fB-p\fR\fI mode\fR\fR
105 Print \fIfiles\fR in either portrait or landscape \fImode\fR. Only the first
106 character of \fImode\fR is significant. The default \fImode\fR is portrait.
112 \fB\fB-r\fR\fI num\fR\fR
115 Selects carriage return behavior. Carriage returns are ignored if \fInum\fR is
116 \fB0\fR, cause a return to column 1 if \fInum\fR is \fB1\fR, and generate a
117 newline if \fInum\fR is \fB2\fR. The default \fInum\fR is \fB0\fR.
123 \fB\fB-s\fR\fI num\fR\fR
126 Print \fIfiles\fR using point size \fInum\fR. When printing in landscape mode
127 \fInum\fR is scaled by a factor that depends on the imaging area of the device.
128 The default size for portrait mode is \fB10\fR. Note that increasing point
129 size increases virtual image size, so you either need to load larger paper, or
130 use the \fB\(mil0\fR option to scale the number of lines per page.
136 \fB\fB-t\fR\fI num\fR\fR
139 Assume tabs are set every \fInum\fR columns, starting with the first column. By
140 default, tabs are set every \fB8\fR columns.
146 \fB\fB-x\fR\fI num\fR\fR
149 Translate the origin \fInum\fR inches along the positive x axis. The default
150 coordinate system has the origin fixed near the upper left corner of the page,
151 with positive x to the right and positive y down the page. Positive \fInum\fR
152 moves everything to the right. The default offset is \fB0.25\fR inches.
158 \fB\fB-y\fR\fI num\fR\fR
161 Translate the origin \fInum\fR inches along the positive y axis. Positive
162 \fInum\fR moves text up the page. The default offset is \fB\(mi0.25\fR inches.
167 A new logical page is started after 66 lines have been printed on the current
168 page, or whenever an ASCII form feed character is read. The number of lines
169 per page can be changed using the \fB-l\fR option. Unprintable ASCII characters
170 are ignored, and lines that are too long are silently truncated by the printer.
173 \fBExample 1 \fRExamples of \fBpostprint\fR.
176 To print \fIfile1\fR and \fIfile2\fR in landscape mode, issue the following
182 \fBexample% postprint \fR\fB-pland\fR\fB \fR\fIfile1 file2\fR
189 To print three logical pages on each physical page in portrait mode:
194 \fBexample% postprint \fR\fB-n3\fR\fB \fR\fBfile\fR
202 The following exit values are returned:
209 Successful completion.
225 \fB\fB/usr/lib/lp/postscript/forms.ps\fR\fR
235 \fB\fB/usr/lib/lp/postscript/ps.requests\fR\fR
245 \fBdownload\fR(1), \fBdpost\fR(1), \fBpostdaisy\fR(1), \fBpostdmd\fR(1),
246 \fBpostio\fR(1), \fBpostmd\fR(1), \fBpostreverse\fR(1), \fBposttek\fR(1),