fix pdf class for PHP 5.3
Merge pull request #2 from bueltge/master

fix pdf class for PHP 5.3