add pdfinfo driver.
use pdfinfo instead of docsplit for document metadata.
code style.
php 5.3 array syntax.
use realpath to make debugging easier to read.
remove unused code.
setting env PATH explicitly avoids environment hassles.
code hint.