Pdftk alternative?



Since pdftk isn’t offered - and it’s apparently impossible to install [or the method is excruciatingly obscure] - I’m wondering if there is a DreamHost friendly alternative available. I need to be able to find the starting and ending page numbers of PDFs - pdftk gives me the starting number and the number of pages and as these PDF chunks are sequentially numbered … it’s trivial to calculate the ending page number.

I’m working in PHP, if that makes a difference. Any assistance would be greatly appreciated.