how to remove black borders from a PDF

how-to,Linux,Uni — 21. Jul 2009

our copy machines at the university can scan documents and send them to an email address. how convenient! however, when you scan pages from a book, the page-size will most likely not match the exact size of an A4 paper, resulting in a PDF document that has black borders on the side and/or the bottom. this is bad, because printing these pages later will waste a lot of ink. that’s why i’ve been looking for an easy way to crop PDF documents on linux, and i’ve finally found out how to do this:

pdfcrop –margins ‘0 0 0 -50’ –clip report.pdf

this will remove 50 bp from the bottom of every page of the PDF.

on my distro, pdfcrop is provided by the package ‘texlive-extra-utils’, so you’ll need to install this if you don’t have it already.

5 comments »

  1. Hi Luzius!

    Maybe you want to try ‘unpaper’ http://unpaper.berlios.de/

    Just my $.02

    Alain

    Comment by Alain — 1. Aug 2009 @ 12:42
  2. Thank you, Alain, that looks like a nice tool.

    I also found another useful tool that can merge/split PDF files (it even has a GUI). http://www.pdfsam.org/

    Comment by luzi — 4. Aug 2009 @ 12:04
  3. another one: http://sourceforge.net/projects/briss

    java-based, can crop with a GUI.

    Comment by luzi — 13. Nov 2010 @ 16:45
  4. Thank you very much!

    Comment by bbauwens — 8. Feb 2012 @ 16:51
  5. Another useful (command line) tool to split/merge/rotate/… pdf files is pdftk.

    Comment by Kai — 8. May 2013 @ 08:16

RSS feed for comments on this post. TrackBack URI

Leave a comment