Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Omkar1872
/
Recall.Ai
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Recall.Ai
/
utils
/
pdf_parser.py
Omkar1872
Upload 5 files
169c9db
verified
5 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
207 Bytes
import
fitz
# PyMuPDF
def
extract_text_from_pdf
(
file_path
):
text =
""
with
fitz.
open
(file_path)
as
pdf:
for
page
in
pdf:
text += page.get_text()
return
text.strip()