pdfcrop example.pdf
pdfcrop --margin 5 example.pdf
pdfcrop is part of package texlive-extra-utils
However, the PDF files created by this program is usually much larger than the original. There’s a better option: pdfcropmargins, a program written in Python. The output PDF file is about the same size of original.
