Converting PDF to string [closed]
How read PDF file and put content into string? Using PHP language. You could use something like pdftotext which comes with the Xpdf package on linux. The popen command can then be used to pipe the output of pdftotext into a string: $mystring = ""; $fd = popen("/usr/bin/pdftotext blah.pdf","r"); if ($fd) { while (($myline = fgets($fd)) !== false) { $mystring .= $myline; } } advanced_noob Found this really nice class! Further, you can add functionality to fit your needs. PDF2Text - Pastebin Probably these will help you to add functionality: http://www.adobe.com/devnet/pdf/pdf_reference.html http