How can I automatically trim margins of a multi-page PDF via Linux command line such that each PDF page gets cropped individually? http://pdfcrop.sourceforge.net/ does not do the job as confirmed by https://onetransistor.blogspot.de/2016/01/pdf-crop-linux-software.html I am on Kubuntu 14.4.
- On that page I don't see that pdfcrop "does not do the job".Gerard H. Pille– Gerard H. Pille2018-02-26 15:35:00 +00:00Commented Feb 26, 2018 at 15:35
- @GerardH.Pille: It says "There is no way to select page range or apply different crop boxes to different pages."Make42– Make422018-02-26 22:20:42 +00:00Commented Feb 26, 2018 at 22:20
Add a comment |
1 Answer
PDF CPU is a good option:
pdfcpu crop -pages -3,5,7- '0 0 17' in.pdf out.pdf