Slurpy is a PHP wrapper for the pdftk command-line tool for working with PDF.