I am trying to extract the content from a PDF in order to create an excel sheet out of it.
What I tried
import pdfquery
pdf = pdfquery.PDFQuery('C:\\Users\\Santosh\\Downloads\\2017-San-Jamar-
Price-List-US-Z120913E-RevA.pdf')
page = pdf.get_page(3)
page_content = page.extractText()
print (page_content)
It throws the following error:
AttributeError Traceback (most recent call last)
<ipython-input-32-d6b615faa422> in <module>()
1 page = pdf.get_page(3)
----> 2 page_content = page.extractText()
3 print (page_content)
AttributeError: 'PDFPage' object has no attribute 'extractText'
Please let me know a possible solution.