QPDF is a command-line program that does structural, content-preserving transformations on PDF files.

WWW: http://qpdf.sourceforge.net/
