I am using xpdf to convert pdf files to text. Below is the code used for it.
$content = shell_exec('pdftotext '.$filename.' -');
Xpdf is not able to convert few special fonts in pdf to text. for example: bizarre font cannot be converted to text using xpdf.
Are they any alternative software which can convert all kind of fonts in pdf to text in PHP.