by asynchronously what I mean to say is as you can see in the second screenshot, the address and phone details are getting mixedI have a task to parse a pdf file using python scripting with some specific attributes. I have to fetch first name
, last name
, address
and email
. I have done the below.
from PyPDF2 import PdfFileReader
f = open('CV_Smith.pdf', 'rb')
reader = PdfFileReader(f)
contents = reader.getPage(0).extractText()
f.close()
print(contents)
but getting a problem because the text is coming asynchronously and difficult to process.
screenshots of given pdf.
thank you in advance.