pdfcrop

Perl script that can crop a PDF file.Tried numerous other ways to do it and damned if I could get any other methods to work!

Requires pdftex and ghostscript.

cd /usr/local/bin
wget http://mirror.its.dal.ca/ctan/support/pdfcrop/pdfcrop.pl
chmod ugo+x pdfcrop.pl
mv pdfcrop.pl pdfcrop

If pdfcrop complains about not being able to find pdftex, either add it's location to $PATH, or add a command-line switch such as:

--pdftexcmd /usr/local/texlive/2010/bin/i386-linux/pdftex

Example usage, to take 36 points off the left and right and 18 points off the top/bottom:

pdfcrop --margins '-36 -18 -36 -18' input.pdf output.pdf

http://chromiteblue.com/archive/platform/linux/ghostscript-and-margins/

Recent Updates

  • 1 year 12 months ago
  • 1 year 12 months ago
  • 1 year 12 months ago
    php 8.x
  • 1 year 12 months ago
    10.6.7
  • 2 years 19 hours ago
    Drop Centos 5/6 stuff