Spaces:
Build error
Build error
File size: 174 Bytes
7c114b1 |
1 2 3 4 5 6 7 8 9 |
import fitz # PyMuPDF
def extract_text_from_pdf(pdf_path):
text = ""
doc = fitz.open(pdf_path)
for page in doc:
text += page.get_text()
return text
|