Spaces:
Build error
Build error
| 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 | |