Adding tags to image #967
Replies: 6 comments 10 replies
-
As you describe it, this is not supported in neither MuPDF nor in PyMuPDF. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late response, @JorjMcKie if you download given PDF file you can see that it talks about Link: https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/access.pdf |
Beta Was this translation helpful? Give feedback.
-
These references only talk about how to interface with Adobe Acrobat components. This has nothing to do with general PDF access and hence is unusable for PyMuPDF, too. So what I need you to tell me is something like: "Here is a string containing something. Put it in a PDF page / image / whatever ... object using key |
Beta Was this translation helpful? Give feedback.
-
I did understand stand already! Are you telling me, that somewhere in your PDF those XML data are hidden? |
Beta Was this translation helpful? Give feedback.
-
We are back to start here: Where must these data be stored in a PDF?! Storing them just somehow won't help. |
Beta Was this translation helpful? Give feedback.
-
Look, once again: The questions are:
You are the one who must answer those questions. # xref is the image's cross reference number
# 'mathml' is the string containing the MathML source
# then:
doc.xref_set_key(xref, "MathML", fitz.getPDFstr(mathml))
# done Function Several IFs which only you can clarify ... |
Beta Was this translation helpful? Give feedback.
-
I have done a lot using this package and I greatly appreciate your efforts. I want to add some
alt
text to an image. This text will be a MathML string so when any screen reader encounters an image it will check whether its has some MathML data and if yes then screen reader will read the mathematical equation.Which API end-point should I use to achieve this. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions