문제

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.

도움이 되었습니까?

해결책

Maybe you should try the Poppler version of pdftotext if the XPDF version fails for your files....

However, take note of this fact, please: Not even Acrobat Reader can extract all cases of well rendered text on a PDF page to a text file...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top