title: what is the best way to extract data from pdf
body: <p>I have thousands of pdf file that I need to extract data from.This is an example <a href="https://firebasestorage.googleapis.com/v0/b/honeybox-catalogue.appspot.com/o/test.pdf?alt=media&amp;token=f540b8f2-9d99-4d29-8bca-8f7d7070f9f9" rel="noreferrer">pdf</a>. I want to extract this information from the example pdf.</p>
  
  <p><a href="https://i.stack.imgur.com/BuU3d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BuU3d.png" alt="enter image description here"></a>                                     </p>
  
  <p>I am open to nodejs, python or any other effective method. I have little knowledge in python and nodejs. 
  I attempted using python with this code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import PyPDF2
  
  try:
     pdfFileObj = open('test.pdf', 'rb')
     pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
     pageNumber = pdfReader.numPages
     page = pdfReader.getPage(0)
     print(pageNumber)
  
     pagecontent = page.extractText()
     print(pagecontent)
  except Exception as e:
     print(e)</code></pre>
  </div>
  </div>
  </p>
  
  <p>but I got stuck on how to find the procurement history. What is the best way to extract the procurement history from the pdf?</p>