I'm trying to extract text from a PDF using Python's PDFMINER, but when I run the script below, I'm getting the error:
Traceback (most recent call last): from pdfminer.high_level import extract_pages ImportError: cannot import name 'extract_pages' from 'pdfminer.high_level' (C:\Users\Willian Ambisis\AppData\Local\Programs\Python\Python39\lib\site-packages\pdfminer\high_level.py)
Script:
from pdfminer.high_level import extract_text
text = extract_text('report.pdf')
print(text)
I used this answer to build the script: https://stackoverflow.com/a/61857301/16487962