from PyPDF2 import PDFFileReader temp = open('document_path.PDF', 'rb') PDF_read = PDFFileReader(temp) first_page = PDF_read.getPage(0) print(first_page.extractText())