[pdftex] splitting .pdf output into smaller parts

Andreas Matthias amat at kabsi.at
Sun Jun 1 17:13:37 CEST 2003


Reinhard Kotucha <reinhard at kammer.uni-hannover.de> wrote:

> >>>>> "Paul" == Paul Markowski <marko at mail.meteo.psu.edu> writes:
> 
>     > I've generated a 360 pp., 125 MB document using pdflatex.  Does
>     > anyone know how to split this into smaller files?  Using dvips
> 
> There is a nice package called pdfpages.sty on CTAN.  If you want to
> specify pages or ranges of pages on the command line you could write a
> small shell or perl script that generates the .tex file for the job.
> 
> If you do not know how many pages a document has, you can use pdfinfo
> which comes with xpdf.

The recent pdfpages.sty consults \pdflastximagepages to detect
the last page. Thus, you don't have to know the last page to
specify the page range. E.g.

\includepdf[pages=33-]{file.pdf}

would include all pages from 33 to the end.

Regards
Andreas



More information about the pdftex mailing list