-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Please provide an example page, so we can see what those pop-up are technically. |
Beta Was this translation helpful? Give feedback.
-
Thanks for letting us have an example file. This type of link is not supported by PyMuPDF, neither are there any plans to do so. |
Beta Was this translation helpful? Give feedback.
-
That other file, for xref in range(1, doc.xref_length()):
subtype = doc.xref_get_key(xref, "Subtype")
if subtype[0] != "Link": # not a Link annotation
continue
source = doc.xref_get_key(xref, "A/JS") # read the JavaScript source inside Link object
# then do as above |
Beta Was this translation helpful? Give feedback.
That other file,
pic_programmer.pdf
does not store the JS in separate objects but leaves them inside the abused link objects. So your code must be like this: