Tell me more ×
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 converted an Excel chart to a PDF file by Save As.. PDF in Excel. It looks good, but there is a lot of whitespace/margin on top and bottom which I need to get rid of. The only way to do so seems to be by using Acrobat professional which I don't have. Is there a free way to do this? I use Windows by the way.

share|improve this question
See also Clipping a figure to content. – Stefan Kottwitz May 8 '11 at 11:19
1  
I think this belongs to superuser. – Caramdir May 9 '11 at 16:07
1  
Though if worded as “I have a pdf that I want to include in LaTeX, how can I (automatically) trim it”, I would consider the question on-topic. – Caramdir May 9 '11 at 16:10

4 Answers

up vote 5 down vote accepted

You can use the commandline tool pdfcrop. For this you need perl.

share|improve this answer
It doesn't work for Windows. – P.A May 8 '11 at 8:18
@P.A I changed the link – Marco Daniel May 8 '11 at 8:20
Thanks very much! – P.A May 8 '11 at 8:38
Spent 3 hours looking for this. Thanks! – simon Sep 17 '12 at 14:30

This is more of a Superuser question than a Latex question. You could also use Briss which doesn't require Perl.

share|improve this answer

For Windows install a Perl, eg from http://www.activestate.com/perl and then you can use pdfcrop <file> which creates a <file>-crop.pdf. You can rename the file or use the new one.

Alternatively use the trim option for \includegraphics together with clip it cuts of the defined border.

share|improve this answer
Thanks a lot, all useful. – P.A May 8 '11 at 8:38

You might want to consider using the new inkscape pdf import option. It even allows you to edit the picture. Be aware though that the result is not optimal for editing.

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.