The Coherent PDF Command Line Toolkit provide a
robust, professional set of tools for manipulating
PDF files. The operations it offers includes split
and merge, linearize, encrypt, scale, rotate,
crop, bookmark, stamp, watermark, annotate,
attach, and much more. It's based on the camlpdf
library.