Recall.Ai / utils /pdf_parser.py
Omkar1872's picture
Upload 5 files
169c9db verified
raw
history blame contribute delete
207 Bytes
import fitz # PyMuPDF
def extract_text_from_pdf(file_path):
text = ""
with fitz.open(file_path) as pdf:
for page in pdf:
text += page.get_text()
return text.strip()