On Thu, 18 May 2006, Steve Litt wrote:

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.

May I suggest that you add these methods/tips to this page:

        http://wiki.lyx.org/FAQ/PDF

Or, if this subject is complicated enought to deserve a page of it's own, how about creating this page

        http://wiki.lyx.org/Tips/HowToIncludePDF

(I'm not happy with the page name, but that's life...)

sincere regards
/Christian

--
Christian Ridderstr׌m, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to