Spaces:
Running
Running
| import pdfplumber | |
| def extract_text_from_pdf(path): | |
| text = "" | |
| with pdfplumber.open(path) as pdf: | |
| for page in pdf.pages: | |
| if page.extract_text(): | |
| text += page.extract_text() + "\n" | |
| return text | |