Replies: 5 comments 6 replies
-
|
Sorry I cannot share this PDF file, but its not a totally healthy file: |
Beta Was this translation helpful? Give feedback.
-
|
somewhat surprisingly: The first few lines look like this: And there are many more Let me know if you need any other info from the file... |
Beta Was this translation helpful? Give feedback.
-
|
That's a lot of posts. There is no bug, and I think I can address what seems surprising at first sight. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
I somewhat hesitate to muddy the waters further but the original error reported by one of my users is in fact with the msgs = []
# Any of these might indicate something more complicated than a scan
# and hence we should be safe and just render the page. We only try to
# extract the bitmap under very conservative circumstances. It is not
# safe to assume that if there is a single image on the current page
# then that is the scan - e.g., student annotates pdf using xournalpp and
# then stamps a smiley-face `.png` there."
if p.get_links():
msgs.append("Has links")
if list(p.annots()):
msgs.append("Has annotations")
if list(p.widgets()):
msgs.append("Has fillable forms")
if p.get_text("text"):
msgs.append("Has text")(here If there was more further detail about the RuntimeError, I don't have it. Its also possible that was an earlier version of PyMuPDF or MuPDF. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure what the expected behaviour is, but I'm getting a ValueError from
.annots():I don't get the error if I send types:
I also don't get the error if reference a page directly:
I can't think why
p.annots()would be different thandoc[0].annots()...Beta Was this translation helpful? Give feedback.
All reactions