title: To convert pdf to text using pdfparser
body: <pre><code>ini_set('display_errors',true);
  
  require_once "pdfparser-master/src/Smalot/PdfParser/Parser.php";
  
  $parser = new \Smalot\PdfParser\Parser();
  
  $pdf    = $parser-&gt;parseFile('sample.pdf');  
  $pages  = $pdf-&gt;getPages();
  
  // Loop over each page to extract text.
  foreach ($pages as $page) {
      echo $page-&gt;getText();
  }
  </code></pre>
  
  <p>There is no error. But I'm not getting any output. Is anything Wrong?</p>