Summarize-Agent / utils /pdf_reader.py
nelsondiasandre's picture
Upload 13 files
9b45841 verified
Raw
History Blame Contribute Delete
158 Bytes
import fitz
def read_pdf(path):
doc = fitz.open(path)
text = ""
for page in doc:
text += page.get_text()
return text