One of the most annoying things about PDF files are their fixed font size, the only real way of getting a better view at the text is to zoom the whole page in. This isn’t really a fix for that annoyance but it’s a way of getting more info to screen ratio by removing the wasted white space around the body of the file for each page, this really comes in useful when displaying PDF files on your Kindle, Nook, Smart Phone or other eBook Readers.
sudo apt-get install texlive-extra-utils
It’s really simple to use and by default it crops all the white space from around an image, it does this per page rather than for the entire document which allows for the best results (as long as you don’t mind changes in font size when you’re reading it).
Change input.pdf to the name of the file you want to crop and output.pdf to the output cropped file.
pdfcrop input.pdf output.pdf
Some PDFs have better results than others and some PDFs will look the same on eBook readers if they crop the whitespace, but it’s a useful tool to have for some of those old pesky JPEG PDF files with massive borders all the way around.
Example: Left = input, right = output
Some PDF files seem to bring up the following error:
!!! Error: Ghostscript exited with error code 1!
I’m currently not sure what causes this, possibly something to do with the encoding type of the PDF? or maybe just some missing dependencies..
For more info about pdfcrop check out the Ubuntu Manpage: http://manpages.ubuntu.com/manpages/gutsy/man1/pdfcrop.1.html