On Wednesday 17 May 2006 09:50 pm, Paul A. Rubin wrote:
> mail.k wrote:
> > Is it possible to make a .pdf of a specific chapter or section of a long
> > document (not the whole document)?
> >
> > regards,
> > eran
>
> Method 1: Stick everything except the desired part in comments (and hope
> this does not screw up the pagination, or leave cross-references
> undefined).
>
> Method 2: Make a PDF of the entire document, then use Ghostscript to
> produce a PDF of selected pages, as in the following (which extracts
> pages 3 through 5 inclusive from sourcefile.pdf):
>
> gsc -dFirstPage=3 -dLastPage=5 -sDEVICE=pdfwrite -sOutputFile=test.pdf
> -dBATCH -dNOPAUSE sourcefile.pdf
>
> Method 3: I use a PDF printer driver (PDFCreator) that, like most
> printer drivers, can output selected pages.  So I can print the document
> to it from Acrobat Reader and extract just the pages I want.

Method 4:

pdftk sourcefile.pdf cat 130-140 output test.pdf

You can find pdftk here:

http://www.accesspdf.com/pdftk/

It can do lots of other stuff, including merging pdfs, splitting pdfs, 
reading, inserting and changing metadata, and lots more. I first heard about  
it on this list.

Thanks

SteveT

Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Manager's Guide to Technical Troubleshooting
   * Twenty Eight Tales of Troubleshooting
   * Rapid Learning: Secret Weapon of the Successful Technologist

http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm

Reply via email to