Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Printing selected pages of a PostScript file

If you're running X windows, the simplest way to print selected pages
of a postscript file is from the graphical postscript viewer gv:

    athena% gv filename.ps

Then, select the pages you want to print by clicking with the middle
button on the page numbers listed on the left side of the window - a
little red box will appear by the pages you've selected.  Once you've
selected all the pages you want, do "print marked pages" under the
File menu.  

----------------------------------------------------------------------

If you're not on an X window system, there is a program called "psrev"
you can use that will let you print only selected pages from
DSC-compliant PostScript files (the file must adhere to special
Document Structuring Conventions; not all applications create
PostScript files which do).

If the file is DSC-compliant, then "psrev" is an excellent way to save
time and paper if you just need a few pages from a long document.  For
example, if you wanted to print only pages 3 to 6 of a PostScript file,
then you would type:

	psrev  -R  -s  3-6  file.PS  |  lpr  -Pprinter

where "printer" is the name of your favorite PostScript printer.  The -s
options are:

	N-M	print pages N through M
	 -N	print beginning to page N
	M-	print page M to the end
	A,B,C	print only pages A, B, and C

NOTE that you need to specify the *actual* page numbers, not the numbers
that print on top of each page.  For documents that have a title page,
add one to the page numbers you give to psrev.  (In the above example,
"3-6" would be "4-7".)

If you have a Latex document, see our stock answer on that.

$Date$

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.