Cannot Read Pdf from st.upload (streamlit) with pymupdf #3524
-
[quote="francisco1, post:1, topic:70698, full:true"]
PyMuPDF reads the pdf, but returns empty text and has this error message: full code:
it is similar to this, but it does not work with the given solution similar issue Ive search througly for this issue, but cant seem to resolve it PyPDF works!! but I’m swithcing for PyMuPDF for the features. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This worked… uploaded_file.seek(0,0) |
Beta Was this translation helpful? Give feedback.
This worked…
before the doc=pymupdf.open(stream=uploaded_file.read(),filetype=“pdf”)
uploaded_file.seek(0,0)
solution