title: How to Extract data from pdf file in nodejs
body: <p>I have already used <strong>'pdf.js-extract'</strong> npm module to fetch data from pdf. </p>
  
  <pre><code>var PDFExtract = require('pdf.js-extract').PDFExtract;
  
  var pdfExtract = new PDFExtract();
  var filename="/home/aman/Downloads/sample_invoice.pdf"
  
  pdfExtract.extract(filename , function (err, data) {
      if (err) return console.log(err);
      console.log(JSON.stringify(data));
  });
  </code></pre>
  
  <p>But I am not getting the desired result.
  I want to fetch the relevant information from invoice pdf like tax, total amount paid, seller address and save the data fetched into the mongodb collection</p>