      M                                                                     PSTOPS(1)           NAME 0      pstops - shuffle pages in a PostScript file      SYNOPSIS L      pstops [ -q ] [ -b ] [ -wwidth ] [ -hheight ] pagespecs [ infile [ out-
      file ] ]       DESCRIPTIONG      Pstops rearranges pages from a PostScript document, creating a new H      PostScript file.  The input PostScript file should follow the AdobeM      Document Structuring Conventions.  Pstops can be used to perform a large J      number of arbitrary re-arrangements of Documents, including arrangingJ      for printing 2-up, 4-up, booklets, reversing, selecting front or back&      sides of documents, scaling, etc.  !      pagespecs follow the syntax:   &           pagespecs   = [modulo:]specs  ,           specs       = spec[+specs][,specs]  ?           spec        = [-]pageno[@scale][L][R][U][(xoff,yoff)]   L      modulo is the number of pages in each block. The value of modulo shouldL      be greater than 0; the default value is 1.  specs are the page specifi-I      cations for the pages in each block. The value of the pageno in each L      spec should be between 0 (for the first page in the block) and modulo-1J      (for the last page in each block) inclusive.  The optional dimensionsM      xoff and yoff shift the page by the specified amount.  xoff and yoff are I      in PostScript's points, but may be followed by the units cm or in to I      convert to centimetres or inches, or the flag w or h to specify as a J      multiple of the width or height.  The optional parameters L, R, and UM      rotate the page left, right, or upside-down.  The optional scale parame- J      ter scales the page by the fraction specified.  If the optional minusH      sign is specified, the page is relative to the end of the document,      instead of the start.  M      If page specs are separated by + the pages will be merged into one page; L      if they are separated by , they will be on separate pages.  If there isK      only one page specification, with pageno zero, the pageno may be omit- 	      ted.   K      The -w option gives the width which is used by the w dimension specif- M      ier, and the -h option gives the height which is used by the h dimension I      specifier. These dimensions are also used (after scaling) to set the !      clipping path for each page.   L      The -b option prevents any bind operators in the PostScript prolog fromF      binding. This may be needed in cases where complex multi-page re-!      arrangements are being done.   M      Pstops normally prints the page numbers of the pages re-arranged; the -q       option suppresses this.    M                                                                             1                 PSTOPS(1)          EXAMPLES K      This section contains some sample re-arrangements. To put two pages on 5      one sheet (of A4 paper), the pagespec to use is:   :                        2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)  :      To select all of the odd pages in reverse order, use:  +                                        2:-0   8      To re-arrange pages for printing 2-up booklets, use  ;                        4:-3L@.7(21cm,0)+0L@.7(21cm,14.85cm)         for the front sides, and   ;                        4:1L@.7(21cm,0)+-2L@.7(21cm,14.85cm)   K      for the reverse sides (or join them with a comma for duplex printing).   	    AUTHOR       Angus Duggan       SEE ALSO       psbook(1), psselect(1)   
    TRADEMARKS =      PostScript is a trademark of Adobe Systems Incorporated.       BUGS >      Pstops cannot cope with documents longer than 5000 pages.                                                    2     99