[pdftex] splitting .pdf output into smaller parts

Reinhard Kotucha reinhard at kammer.uni-hannover.de
Sun Dec 9 02:47:00 CET 2001


Hi,
if you want to run pdfpages from the command line, you could try the
following script.

Let's call it includepdf.tex and you then can run it like this:

pdflatex includepdf "[pages={1,3}]{filename.pdf}"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{pdfpages}

\def\doit#1 {\setbox0=\lastbox\par
  \begin{document}
    \includepdf#1
  \end{document}
}
\everypar{\doit}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The last argument has to be quoted (at least on UNIX systems) and it
shouldn't contain whitespaces.

The output file is named includepdf.pdf.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			               Phone: +49-511-751355
Berggartenstr. 9
D-30419 Hannover	              mailto:reinhard at kammer.uni-hannover.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------





More information about the pdftex mailing list