Spaces:
Sleeping
Sleeping
File size: 211 Bytes
fe099da | 1 2 3 4 5 6 7 8 | import fitz
def extract_text_from_pdf(file_bytes: bytes) -> str:
doc = fitz.open(stream=file_bytes, filetype="pdf")
text = ""
for page in doc:
text += page.get_text()
return text.strip() |