1postreverse(1)                   User Commands                  postreverse(1)
2
3
4

NAME

6       postreverse - reverse the page order in a PostScript file
7

SYNOPSIS

9       postreverse [-o list] [-r] [file]
10
11
12       /usr/lib/lp/postscript/postreverse
13
14

DESCRIPTION

16       The postreverse filter reverses the page order in files that conform to
17       Adobe's Version 1.0 or Version 2.0 file  structuring  conventions,  and
18       writes  the  results  on  the  standard  output. Only one input file is
19       allowed and if no file is specified, the standard input is read.
20
21
22       The postreverse filter can handle a limited class of files that violate
23       page  independence,  provided  all  global definitions are bracketed by
24       %%BeginGlobal and %%EndGlobal comments. In addition,  files  that  mark
25       the  end  of each page with %%EndPage: label ordinal comments will also
26       reverse properly, provided the prologue and  trailer  sections  can  be
27       located. If postreverse fails to find an %%EndProlog or %%EndSetup com‐
28       ment, the entire file is copied, unmodified, to the standard output.
29
30
31       Because global definitions are extracted from individual pages and  put
32       in  the  prologue, the output file can be minimally conforming, even if
33       the input file was not.
34

OPTIONS

36       -o list    Select pages whose numbers are given in the  comma-separated
37                  list. The list contains single numbers N and ranges N1N2.
38                  A missing N1 means the lowest numbered page,  a  missing  N2
39                  means  the highest. The page range is an expression of logi‐
40                  cal pages rather than physical sheets of paper. For example,
41                  if  you  are  printing two logical pages to a sheet, and you
42                  specified a range of 4,  then  two  sheets  of  paper  would
43                  print, containing four page layouts. If you specified a page
44                  range of 3-4, when requesting two logical pages to a  sheet;
45                  then  only  page  3 and page 4 layouts would print, and they
46                  would appear on one physical sheet of paper.
47
48
49       -r         Do not reverse the pages in file.
50
51

EXAMPLES

53       Example 1 Examples of postreverse.
54
55
56       o select pages 1 to 100 from file and reverse the pages:
57
58
59         example% postreverse -o1−100 file
60
61
62
63
64       To print four logical pages on each physical page and reverse  all  the
65       pages:
66
67
68         example% postprint -n4 file | postreverse
69
70
71
72
73       To  produce  a minimally conforming file from output generated by dpost
74       without reversing the pages:
75
76
77         example% dpost file | postreverse -r
78
79
80

EXIT STATUS

82       The following exit values are returned:
83
84       0           Successful completion.
85
86
87       non-zero    An error occurred.
88
89

ATTRIBUTES

91       See attributes(5) for descriptions of the following attributes:
92
93
94
95
96       ┌─────────────────────────────┬─────────────────────────────┐
97       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
98       ├─────────────────────────────┼─────────────────────────────┤
99       │Availability                 │SUNWpsf                      │
100       └─────────────────────────────┴─────────────────────────────┘
101

SEE ALSO

103       download(1), dpost(1), postdaisy(1), postdmd(1), postio(1),  postmd(1),
104       postprint(1), posttek(1), attributes(5)
105

NOTES

107       No attempt has been made to deal with redefinitions of global variables
108       or procedures. If standard input is used, the input file will  be  read
109       three times before being reversed.
110
111
112
113SunOS 5.11                        9 Sep 1996                    postreverse(1)
Impressum