Spaces:
Sleeping
Sleeping
File size: 190 Bytes
6a7af6b | 1 2 3 4 5 6 7 8 9 10 | def extract_text_from_pdf(pdf):
text = ""
for page in pdf.pages:
page_text = page.extract_text()
if page_text:
text += page_text + "\n"
return text
|