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
Post a Comment