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