title: parsing the pdf file using PyPDF 2
body: <p><a href="https://i.stack.imgur.com/AzrFg.png" rel="nofollow noreferrer"> by asynchronously what I mean to say is as you can see in the second screenshot, the address and phone details are getting mixed</a>I have a task to parse a pdf file using python scripting with some specific attributes. I have to fetch <code>first name</code>, <code>last name</code>, <code>address</code> and <code>email</code>. I have done the below. </p>
  
  <pre><code>from PyPDF2 import PdfFileReader
  f = open('CV_Smith.pdf', 'rb')
  reader = PdfFileReader(f)
  contents = reader.getPage(0).extractText()
  f.close()
  print(contents)
  </code></pre>
  
  <p>but getting a problem because the text is coming asynchronously and difficult to process.</p>
  
  <p>screenshots of given pdf.
  <img src="https://i.stack.imgur.com/AzrFg.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/xAR2c.png" alt="enter image description here"></p>
  
  <p>thank you in advance.</p>