I am extracting text from PDF files. this is the code:
<?php
require("PdfToText.php");
$file = 'SamplePF' ;
$pdf = new PdfToText ( "$file.pdf" ) ;
echo ( $pdf -> Text ) ;
?>
This class work fine for some PDF files. The problem with this class is :
- for some PDF files it take text from random page/line not in the page sequence wise.
- for some PDF files it is not showing any result.
- for some PDF files it extract only one or two lines.
Please suggest some solution. Thank You!