TalentLensAI / resume_parser.py
Johnny
added modular functions, config, model
f3f0a69
raw
history blame
234 Bytes
import fitz # PyMuPDF
def extract_text_from_pdf(pdf_file):
"""Extract text from a given PDF file."""
text = ""
with fitz.open(pdf_file) as doc:
for page in doc:
text += page.get_text()
return text