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.

This question already has an answer here:

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?

share|improve this question

marked as duplicate by Martin Schröder, Paul Gaborit, Claudio Fiandrino, Andrew Swann, mafp Mar 8 '13 at 11:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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 7 '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 7 '13 at 20:10
add comment

3 Answers

up vote 2 down vote accepted

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.

share|improve this answer
    
Thanks, it is what i was looking for. –  João Mar 7 '13 at 20:23
1  
Just to help the others: [trim = <left> <down> <right> <up>, clip] –  João Mar 7 '13 at 20:30
add comment

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

share|improve this answer
    
Thanks, but actually i'm not using a linux system. : / But i'll keep i t as reference. –  João Mar 7 '13 at 20:20
add comment

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.

share|improve this answer
    
It is not an option, because there are lost of a lot of quality in the image. Too much details. –  João Mar 7 '13 at 20:19
add comment

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