%% %% This is file `pdf-ex.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% pdfpages.dtx (with options: `example1') %% %% This file is a demonstration of the pdfpages package. %% Run it through pdfLaTeX. %% %% Copyright (C) 2001 Andreas Matthias %% %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% \documentclass[a4paper,12pt, draft]{article} \usepackage[final]{pdfpages} %% Uncomment the following lines, if you want to produce thumbnails. %%\usepackage{pdflscape} %%\usepackage{thumbpdf} \usepackage{verbatim} \newcounter{example} \setcounter{example}{1} \newenvironment{example} {\par\vskip\topsep% \noindent\textbf{Example \arabic{example}:}% \stepcounter{example}% \par\vskip\topsep% \minipage{.9\linewidth}% \verbatim} {\endverbatim% \endminipage\par\vskip\topsep} \begin{document} \title{Demonstration of the \texttt{pdfpages} Package} \author{Andreas MATTHIAS} \maketitle This is a demonstration of the \texttt{pdfpages} package. It is \textit{not} the documentation of the package. To get the documentation run: `latex pdfpages.dtx' \tableofcontents \section{Inserting Pages:} \begin{example} \includepdf[pages=3-5]{dummy} \end{example} \includepdf[pages=3-5]{dummy} \section{Using the \texttt{nup} Option} Arranging several logical pages on one sheet of paper. \begin{example} \includepdf[nup=1x2, landscape, pages=4-7]{dummy} \end{example} \includepdf[nup=1x2, landscape, pages=4-7]{dummy} Use the option \texttt{turn=false}, if the pages should not be displayed in landscape orientation. (If the last two pages were not displayed in landscape orientation, you use a PDF viewer that does not support this option.) \begin{example} \includepdf[nup=1x2, landscape, pages=4-7, turn=false]{dummy} \end{example} \includepdf[nup=1x2, landscape, pages=4-7, turn=false]{dummy} \begin{example} \includepdf[nup=1x2, pages=1-4]{dummy-l} \end{example} \includepdf[nup=1x2, pages=1-4]{dummy-l} \noindent With the option \texttt{pages} special pages and ranges of pages can be selected. \begin{example} \includepdf[nup=3x2, pages={1,4-6,8,10}]{dummy} \end{example} \includepdf[nup=3x2, pages={1,4-6,8,10}]{dummy} \noindent A column-major layout can be achieved with the option \texttt{column}. \begin{example} \includepdf[nup=2x2, pages=1-4, column]{dummy} \end{example} \includepdf[nup=2x2, pages=1-4, column]{dummy} \noindent Sometimes it might be useful to put an empty page at the beginning. \begin{example} \includepdf[nup=2x2, pages={,5-7}]{dummy} \end{example} \includepdf[nup=2x2, pages={,5-7}]{dummy} \section{Changing Layout} To put some space between the logical pages, use the option \texttt{delta}. Any options of \verb|\includegraphics| are allowed in \verb|\includepdf| as well. See the \texttt{scale} option in the next example. \begin{example} \includepdf[nup=2x2, pages=3-6, scale=.8, delta=8mm 11mm, frame]{dummy} \end{example} \includepdf[nup=2x2, pages=3-6, scale=.8, delta=8mm 11mm, frame]{dummy} \noindent By default the output is centered as you could see in the last examples. With the \texttt{offset} option it is possible to displace the output. \begin{example} \includepdf[nup=2x2, pages=3-6, scale=.8, offset=5mm 7mm, frame]{dummy} \end{example} \includepdf[nup=2x2, pages=3-6, scale=.8, offset=5mm 7mm, frame]{dummy} \noindent To remove the header and the footer of the inserted document use the \texttt{trim} and \texttt{clip} options of the \texttt{graphicx} package. \begin{example} \includepdf[nup=2x2, pages=1-4, trim=0 40mm 0 40mm, clip, pagecommand={}]{dummy} \end{example} \noindent The option \verb|pagecommand={\thispagestyle{empty}}| is set by default. If you don't want the page style to be set to empty, you can remove this default setting by using the \texttt{pagecommand} option as follows: \verb|pagecommand={}|. \includepdf[nup=2x2, pages=1-4, trim=0 40mm 0 40mm, clip, pagecommand={}]{dummy} \noindent You like the crazy way? Then try this one \texttt{;-)} \begin{example} \includepdf[pages={3,4}, nup=1x2, landscape, scale=1.1, angle=30, delta=0 -85mm]{dummy} \end{example} \includepdf[pages={3,4}, nup=1x2, landscape, scale=1.1, angle=30, delta=0 -85mm]{dummy} \end{document} \endinput %% %% End of file `pdf-ex.tex'.