4

Recently I learned how to include just one page of a PDF file as image using \includegraphics, but now I need to include just part of the page and not  the entire page.

How can I include just 50% or 65% of a PDF page as image in a document?

João
  • 191
  • 1
  • 11
  • For most uses I've found it easiest to trim the pdf with an external GUI program. To trim in TeX you'll need to now the precise offsets. Or do you need to automatise the work-flow? – Florian Mar 07 '13 at 20:05
  • @Florian Hi, i didnt find any program to do that, most of them just cut off pages and didn't give me the option to cut a part of page, could you recomend me one? – João Mar 07 '13 at 20:10

3 Answers3

5

You can trim and clip an included image using the trim and clip key-values:

enter image description here

\documentclass{article}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\begin{document}
\includegraphics[scale=.5]{example-image-a} \par
\includegraphics[trim=100 50 100 50,clip]{example-image-a}
\end{document}

The elements supplied to trim=<lx> <ly> <ux> <uy> are the bounding box values in bps. Read up on the details in the Graphics Guide (section 4 The Graphics packages, p 7 onward).

adjustbox provides similar functionality.

Werner
  • 603,163
1

Take a look at this question How can I crop included PDF documents?: Use pdfcrop from Heiko Oberdiek (requires Perl).

FLW
  • 940
  • 8
  • 20
0

If you're using windows, you could just use the 'snipping tool' in programfiles/accessories to create an image of the portion of the pdf you want to put in as a picture.

mark
  • 93
  • It is not an option, because there are lost of a lot of quality in the image. Too much details. – João Mar 07 '13 at 20:19