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"
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
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.
30 \fB\fB-c\fR\fI num\fR\fR
33 Print \fInum\fR copies of each page. By default, only one copy is printed.
39 \fB\fB-f\fR\fI name\fR\fR
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.
50 \fB\fB-l\fR\fI num\fR\fR
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.
61 \fB\fB-m\fR\fI num\fR\fR
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.
72 \fB\fB-n\fR\fI num\fR\fR
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.
82 \fB\fB-o\fR\fI list\fR\fR
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
100 \fB\fB-p\fR\fI mode\fR\fR
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.
110 \fB\fB-r\fR\fI num\fR\fR
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.
121 \fB\fB-s\fR\fI num\fR\fR
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.
134 \fB\fB-t\fR\fI num\fR\fR
137 Assume tabs are set every \fInum\fR columns, starting with the first column. By
138 default, tabs are set every \fB8\fR columns.
144 \fB\fB-x\fR\fI num\fR\fR
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.
156 \fB\fB-y\fR\fI num\fR\fR
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.
171 \fBExample 1 \fRExamples of \fBpostprint\fR.
174 To print \fIfile1\fR and \fIfile2\fR in landscape mode, issue the following
180 \fBexample% postprint \fR\fB-pland\fR\fB \fR\fIfile1 file2\fR
187 To print three logical pages on each physical page in portrait mode:
192 \fBexample% postprint \fR\fB-n3\fR\fB \fR\fBfile\fR
199 The following exit values are returned:
206 Successful completion.
221 \fB\fB/usr/lib/lp/postscript/forms.ps\fR\fR
231 \fB\fB/usr/lib/lp/postscript/ps.requests\fR\fR
240 \fBdownload\fR(1), \fBdpost\fR(1), \fBpostio\fR(1), \fBpostreverse\fR(1),