Funnily enough, about a year ago I replaced some code (not in perl) that shelled out to pdftk, with code that shelled out to a pair of perl scripts (one PDF::API2 and one Text::PDF::File). Partly because the perl solution was faster. And partly to cut down on the amount of Java crap I had to deal with on the server :)