Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
3  
\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 '12 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 '12 at 18:53

1 Answer 1

up vote 4 down vote accepted

\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}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.