Screen reader not reading the line of text after using insert text to change color #4208
Replies: 9 comments
-
Cannot reproduce: everything works as designed in current PyMuPDF version. out of command Color contrast issue
in tagged PDF
|
Beta Was this translation helpful? Give feedback.
-
Is it working as desired with latest PyMuPDF version? May I know if you've used 1.23.1 to reproduce the same? One more question is that, Is this the screen reader output text ?
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have tried using PyMuPDF of version 1.25.1 also and noticed that screen reader is not able to read the section of text in green color even using this version. The text looks visually similar but not while using NVDA screen reader to read. |
Beta Was this translation helpful? Give feedback.
-
Well, all the PDF viewers I am using, including Adobe Acrobat show the PDF as expected and also produce the expected result upon copy-paste. The usual text extractors like XPDF/pdftotext also produce the right output. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ah, understand you now, thanks. |
Beta Was this translation helpful? Give feedback.
-
Oh, Is it? Even I got the point now. Thanks for the clarification. Do you have an idea of any alternate workarounds to ensure tag even after changing color of the existing text? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I should have added an announcement for moving this thing to Discussions.
Then try and see if you obscure NVDA screen reader can deal with that resulting PDF. |
Beta Was this translation helpful? Give feedback.
-
Description of the bug
I have a tagged PDF in which I wanted to change the color of one half of one line of text. Post changing the color using
page.insert_text()
method, screen reader is not reading the line of text.Can you help me understand why this had happened and the mechanism to adopt to overcome it?
How to reproduce the bug
In the saved document, the content that has been inserted using insert text is not readable by screen reader whereas in the input document, the content is readable.
I am providing the input tagged PDF and the json file.
color.json
TagTest_tagged.pdf
May I know the reason why this had happened? If so, how can I resolve this even after re-insertion of text?
PyMuPDF version
1.23.x or earlier
Operating system
Windows
Python version
3.11
Beta Was this translation helpful? Give feedback.
All reactions