I have PDF file in which I want to trim all the white space around as much as possible. It has to automatically detect and do it.
I use Foxit reader and it has option to crop pages automatically while viewing.
But I am looking for a command line solution in Linux.
I tried PDFCrop but it crops all the pages uniformly. I want it to crop based on the white space around each individual page using this command:
pdfcrop input.pdf output.pdf
But it works only partially, some pages are cropped but some are not.