Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Muthuraja18
/
image
like
2
Sleeping
App
Files
Files
Community
32
Fetching metadata from the HF Docker repository...
refs/pr/21
image
/
tools
/
pdf.py
Muthuraja18
Upload 11 files
0f0d66e
verified
12 days ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
190 Bytes
import
fitz
# PyMuPDF
def
extract_pdf_text
(
pdf_path:
str
):
doc = fitz.
open
(pdf_path)
text =
""
for
page
in
doc:
text += page.get_text()
return
text