Manual page for postreverse(1)
postreverse - reverse the page order in a PostScript file
[ file ]
The postreverse filter
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 on the standard output.
Only one input
is allowed and if no
is specified, the standard input is read.
The postreverse filter
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.
fails to find an %%EndProlog or %%EndSetup comment,
is copied, unmodified, to the standard output.
Because global definitions are extracted from individual
pages and put in the prologue, the output file can be
minimally conforming, even if the input
- -o list
Select pages whose numbers are given in the comma-separated
The list contains single numbers
N1 - N2.
means the lowest numbered page, a missing
means the highest.
The page range is an expression of logical pages rather
than physical sheets of paper.
For example, if you are printing two logical pages to a
sheet, and you specified a range of
then two sheets of paper would print, containing four
If you specified a page range of
when requesting two logical pages to a sheet; then only
page 3 and page 4 layouts would print, and they would
appear on one physical sheet of paper.
Do not reverse the pages in
To select pages 1 to 100 from
and reverse the pages:
example% postreverse -o1-100 file
To print four logical pages on each physical page
and reverse all the pages:
example% postprint -n4 file | postreverse
To produce a minimally conforming file from output
generated by dpost without reversing the pages:
example% dpost file | postreverse -r
An exit status of
is returned if
was successfully processed.
No attempt has been made to deal with redefinitions of global
variables or procedures.
If standard input is used, the input
will be read three times before being reversed.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97