cvscan icon indicating copy to clipboard operation
cvscan copied to clipboard

ModuleNotFoundError: No module named 'pdfminer.converter'

Open ShrinivasIyer opened this issue 2 years ago • 1 comments

Hi I am using these codes to extract pdf text

from pdfminer.high_level import extract_text

def convert_pdf_to_txt(path):
    print('You passed in: ' + path)
    text = extract_text(path)
    return text

Filepath = sys.argv[1]

PDFtext = convert_pdf_to_txt(Filepath)
print(PDFtext)  

But it is throwing this error - ModuleNotFoundError: No module named 'pdfminer.converter'

P.S.: I have installed pdfminer.six and uninstalled pdfminer

ShrinivasIyer avatar May 17 '22 10:05 ShrinivasIyer

Im having the same error!

dantearaujo1 avatar Sep 27 '23 22:09 dantearaujo1