To install pdf to text type:

 

then edit php.ini file: /usr/local/lib/php.ini

 

and finally restart apache