13

I was hoping to find a way to insert several (many) pages of a pdf but crop off the header (with the date, filename, etc.). I'm using

\subsection{Notes}
\includepdf[scale=0.8,pages=8-20,pagecommand=\subsection{blub}]{Notes.pdf}

but maybe I need to use pdftk somehow to do the batch cropping?

Thanks for any suggestions!

2
  • 4
    \includepdf accepts all the options that \includegraphics does; so trim=l b r t,clip should work (unless you're using XeLaTeX that, currently, doesn't support cropping). You have to compute the four dimensions, but probably l and r should be 0, while t and b depend on the document you have.
    – egreg
    Oct 10, 2012 at 17:11
  • Aaah. thanks @egreg! I used: \includepdf[scale=0.8,pages=8-10,clip,trim=5mm 5mm 10mm 10mm]{Notes.pdf}
    – nate
    Oct 10, 2012 at 18:53

1 Answer 1

18

\includepdf accepts all the options that \includegraphics does; so

trim=left bottom right top,clip

should work (unless you're using XeLaTeX that, currently, doesn't support cropping). You have to compute the four dimensions, but probably left and right should be 0, while top and bottom depend on the document you have.

Example (from your comment)

\includepdf[scale=0.8,pages=8-10,clip,trim=5mm 5mm 10mm 10mm]{Notes.pdf}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .