1 | .TH PSREV 1 "31 May 1996" "MIT Athena" |
---|
2 | .ds PS P\s-2OST\s+2S\s-2CRIPT\s+2 |
---|
3 | .SH NAME |
---|
4 | psrev \- select or reverse the page order of a PostScript file |
---|
5 | .SH SYNOPSIS |
---|
6 | .B psrev |
---|
7 | [ |
---|
8 | .B \-R |
---|
9 | ] [ |
---|
10 | .BI \-s pagespec |
---|
11 | ] [ |
---|
12 | .I file |
---|
13 | ] |
---|
14 | .SH DESCRIPTION |
---|
15 | .I psrev |
---|
16 | is a script which reads in the specified \*(PS language |
---|
17 | .I file |
---|
18 | (or the standard input if no file is named) and, if the input conforms |
---|
19 | to the \*(PS language document structuring conventions, reverses and |
---|
20 | selects specified pages for printing, and writes the resulting file on |
---|
21 | the standard output. |
---|
22 | .PP |
---|
23 | .I psrev |
---|
24 | is no longer a part of the Transcript package from Adobe. Transcript |
---|
25 | now contains |
---|
26 | .IR pslpr , |
---|
27 | which provides equivalent functionality in addition to several more |
---|
28 | advanced options. In order to facilitate the transition to Transcript |
---|
29 | 4.1, Athena release 8.0 contains a simple script that understands old |
---|
30 | .I psrev |
---|
31 | options and invokes |
---|
32 | .I pslpr |
---|
33 | with appropriate arguments. However, this script will probably be |
---|
34 | removed in the next Athena release, and the users are encouraged to use |
---|
35 | .I pslpr |
---|
36 | instead. |
---|
37 | .sp |
---|
38 | The possible options are: |
---|
39 | .TP |
---|
40 | .BI \-s " pagespec" |
---|
41 | specifies a range (or several ranges) of pages to be printed. |
---|
42 | .I Pagespec |
---|
43 | is a string, not containing spaces, of the form ``pagerange[,pagespec]''. |
---|
44 | .I Pagerange |
---|
45 | may be a single page number or a range |
---|
46 | of the form ``N-M'' which means print pages N through M. |
---|
47 | .sp |
---|
48 | With original |
---|
49 | .IR psrev , |
---|
50 | -N would print from the beginning of the document to page N, and M- |
---|
51 | would print from page M to the end of the document. With the current |
---|
52 | script, -N is equivalent to 1-N, and M- is equivalent to M-9999; these |
---|
53 | may not be equivalent to the old meanings if your document uses an |
---|
54 | unorthodox page numbering. |
---|
55 | .sp |
---|
56 | The analogous |
---|
57 | .I pslpr |
---|
58 | option is |
---|
59 | .BI -i pagerange |
---|
60 | which can be specified multiple times for multiple ranges. Thus, |
---|
61 | .I psrev |
---|
62 | ``-sM-N,P-Q,...'' is equivalent to |
---|
63 | .I pslpr |
---|
64 | ``-iM-N -iP-Q ...''. |
---|
65 | .I pslpr |
---|
66 | does not accept ranges of the form ``-N'' or ``M-''. |
---|
67 | .TP |
---|
68 | .B -R |
---|
69 | will not reverse the page order (the default is to reverse). |
---|
70 | .sp |
---|
71 | Note that the meaning of the -R option in |
---|
72 | .I pslpr |
---|
73 | is exactly opposite from |
---|
74 | .IR psrev . |
---|
75 | .SH EXAMPLES |
---|
76 | The following command reads a \*(PS language file called infile.ps and |
---|
77 | outputs pages 3 through 19, 37 through 60 and page 90 to outfile.ps. |
---|
78 | .RS .5i |
---|
79 | psrev -R -s3-19,37-60,90 printfile.ps > outfile.ps |
---|
80 | .RE |
---|
81 | Here are two ways to accomplish the same effect using |
---|
82 | .IR pslpr : |
---|
83 | .RS .5i |
---|
84 | pslpr -p outfile.ps -i3-19 -i37-60 -i90 infile.ps |
---|
85 | .br |
---|
86 | pslpr -p- -i3-19 -i37-60 -i90 infile.ps > outfile.ps |
---|
87 | .RE |
---|
88 | .PP |
---|
89 | In the next example, a text file is processed by enscript, creating a |
---|
90 | \*(PS language file which is page-reversed and printed on printer |
---|
91 | named ``ajax'': |
---|
92 | .RS .5i |
---|
93 | enscript -p- textfile | psrev | lpr -Pajax |
---|
94 | .RE |
---|
95 | Or, using |
---|
96 | .I pslpr |
---|
97 | again: |
---|
98 | .RS .5i |
---|
99 | enscript -p- textfile | pslpr -R -Pajax |
---|
100 | .RE |
---|
101 | .SH ENVIRONMENT |
---|
102 | .IP PSRESOURCEPATH |
---|
103 | path name to use for accessing printer resource information |
---|
104 | for downloadable resources |
---|
105 | .IP PSTEMPDIR |
---|
106 | path name of a temporary directory to use instead of /usr/tmp |
---|
107 | for spooled temporary files |
---|
108 | .br |
---|
109 | .SH "SEE ALSO" |
---|
110 | transcript(1), pslpr(1), enscript(1), postscript(7) |
---|
111 | .SH "NOTES" |
---|
112 | \*(PS is a registered trademark of Adobe Systems Incorporated. |
---|