The psselect program allows you to take a PostScript file and select individual pages for printing. It's part of Angus Duggan's PSUtils collection, a group of utilities for working with PostScript files. psselect produces a second PostScript file, which you can print using (if your printer handles PostScript). It's easy to use; in the simplest form, just type:
is a comma-separated string of page numbers
and/or ranges of page numbers separated by a dash. Pages are counted
from 1 (the first page of the document), or prepend an underscore
Use -e to print only the even-numbered pages or -o to print the odd-numbered pages. (If you use -e or -o , -p is also required.) Add the -r option if you want to reverse the order in which pages are printed.
psselect only works on PostScript files that conform to the Adobe Document Structuring Conventions. I won't elaborate on those conventions, but I will say that PostScript files that obey these conventions are the exception, rather than the rule. Unfortunately, the PostScript language is entirely too flexible; it's impossible to write fully general programs for extracting pages (and the like) without processing the entire language.
Fortunately, Angus has written a few scripts that convert PostScript files generated by various word processors into a form that he can deal with. These filters are all written in the ; here's a quick summary of what's available: