CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit for current CERN information.

next up previous
Next: pstops---shuffle pages in Up: PostScript tools Previous: psnup---multiple pages per

psselect---select pages from a PostScript file

psselect [ -q ] [ -e ] [ -o ] [ -r ] 
         [ -p\Larg{pages} ] [ pages ]       
         [ infile [ outfile ] ]

The program psselect, written by Angus Duggan, selects pages from a PostScript document, creating a new PostScript file. The input PostScript file should follow the Adobe Document Structuring Conventions.


Selects all of the even pages; it may be used in conjunction with the other page selection options to select the even pages from a range of pages.
Selects all of the odd pages; it may be used in conjunction with the other page selection options.
Specifies the pages to be selected. The parameter pages is a comma separated list of page ranges, each of which may be a page number, or a page range of the form first-last. If first is omitted, the first page is assumed, and if last is omitted, the last page is assumed. The prefix character _ indicates that the page number is relative to the end of the document, counting backwards.
Suppress printing the page numbers of the pages being rearranged (default all page numbers are printed).
Output the selected pages in reverse order.

If any of the -e, -o, or -r options are specified, the page range must be given with the -p option. This is for backwards compatibility with previous versions.

Note that the page number given to psselect is the number of the page counting from the start or end of the file, starting at one. The actual page number in the document may be different.

Janne Saarela
Tue May 16 13:43:26 METDST 1995