Skip to content

ModuleNotFoundError: No module named 'pdfminer.converter' #28

@ShrinivasIyer

Description

@ShrinivasIyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions