import textract
text = textract.process('path/to/pdf/file', method='pdfminer')
from PyPDF2 import PDFFileReader
temp = open('document_path.PDF', 'rb')
PDF_read = PDFFileReader(temp)
first_page = PDF_read.getPage(0)
print(first_page.extractText())
from PDFminer.high_level import extract_text
PDF_read = extract_text('document_path.PDF')
import PDFplumber
with PDFplumber.open("document_path.PDF") as temp:
first_page = temp.pages[0]
print(first_page.extract_text())
import textract
PDF_read = textract.process('document_path.PDF', method='PDFminer')