[Tex/LaTex] pdfcrop a specific page out of a pdf containing several pages

pdfcrop

Can I pdfcrop a specific page out of a pdf containing several pages, say I want page 3 from a pdf that has four pages

Best Answer

Yes, but you should use a two-step process:

  1. Extract the page of interest.

    This can be done using The PDF Toolkit:

    pdftk in.pdf cat 3 output out.pdf
    

    You can also extract it using the following minimal TeX document

    \documentclass{article}
    \usepackage{pdfpages}
    \begin{document}
    \includepdf[page=3]{in}% Extract only page 3 from in.pdf
    \end{document}
    
  2. Use pdfcrop:

    pdfcrop out.pdf
    

If the main intent is to include only pageĀ 3 of some larger, multi-page document, then you can include it via pdfpages

\includepdf[page=3]{in}

or via graphicx

\includegraphics[page=3]{in}

Both of the above options allow you to trim the inclusion, if needed.

Related Question