import slate3k as slate with open(file.pdf,'rb') as f: extracted_text = slate.PDF(f) print(extracted_text)