Convert pdf to text and search content with line number in pdf using php -


require_once($_server['document_root']. '/class.pdf2text.php'); $a = new pdf2text(); $a->setfilename('abc.pdf'); $a->decodepdf(); $file1=$a->output(); echo $file1; $searchtext = "download"; if (strstr($file, $searchtext))  {     echo 'found'.' '.$searchtext; } else {     echo 'not found'; } 

with code able convert pdf text.i want search content within pdf line number.i not able line number...

try

 $content = shell_exec('abc.pdf -'); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -