postreverse(1M) (Line Printer PostScript Utilities) postreverse(1M)
NAME
postreverse - reverse the page order in a PostScript file
SYNOPSIS
/usr/lib/lp/postscript/postreverse [options] [files]
DESCRIPTION
postreverse reverses the page order in files that conform to Adobe's
Version 1.0 or Version 2.0 file structuring conventions, and writes
the results to standard output. Only one input file is allowed and if
no file is specified, standard input is read.
OPTIONS
-olist Selects pages whose numbers are given in the comma-separated
list. The list contains single numbers N and ranges N1 - N2. A
missing N1 means the lowest numbered page, a missing N2 means
the highest.
-r Don't reverse the pages in file.
-Tdir Uses dir as the temporary file directory when reading from
standard input. By default dir is set to /tmp.
postreverse can handle a limited class of files that violate page
independence, provided all global definitions are bracketed by
%%BeginGlobal and %%EndGlobal comments. In addition, files that mark
the end of each page with %%EndPage: label ordinal comments will also
reverse properly, provided the prologue and trailer sections can be
located. If postreverse fails to find an %%EndProlog or %%EndSetup
comment the entire file is copied, unmodified, to standard output.
Since global definitions are pulled out of individual pages and put in
the prologue, the output file can be minimally conforming, even if the
input file wasn't.
EXAMPLES
Select pages 1 to 100 from file and reverse the pages,
postreverse -o1-100 file
Print 4 logical pages on each physical page and reverse all the pages,
postprint -n4 file | postreverse
Produce a minimally conforming file from output generated by dpost
without reversing the pages,
dpost file | postreverse -r
DIAGNOSTICS
0 exit status is returned if files were successfully processed.
Page 1 Reliant UNIX 5.44 Printed 11/98
postreverse(1M) (Line Printer PostScript Utilities) postreverse(1M)
NOTES
No attempt has been made to deal with redefinitions of global vari-
ables or procedures. If standard input is used, the input file will be
read three times before being reversed.
SEE ALSO
dpost(1M), postdaisy(1M), postdmd(1M), postio(1M), postmd(1M),
postprint(1M), posttek(1M).
Page 2 Reliant UNIX 5.44 Printed 11/98