ubuntu crop pdf

Shell
# Crop the whitespaces at the edges of your pdf, leave a margin of 5pt
pdfcrop --margins '5 5 5 5' input.pdf output.pdf
Source

Also in Shell: