import pdfplumber as pdf with pdf.open(r'E:pdfpython.pdf')as f: for i in f.pages: con=i.extract_text() print(con)