Crop PDF border and add page numbers

OPiMedia Feb 14th, 2017 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Crop left border and a little top border :
  2. pdfcrop --margins "-45 -10 0 0" FILE.pdf OUTPUT.pdf
  4. # Add page numbers :
  5. pspdftool 'number(start=1, size=6, x=305 pt, y=10 pt)' FILE.pdf OUTPUT.pdf
  7. # If pspdftool make a xreftable error, then fix the problem with :
  8. pdftk FILE.pdf output OUTPUT.pdf
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand