-
-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF/UA accessibility. Labeled strange. #2153
Comments
Hmmm… There’s something strange in these labels, we have to check what’s wrong and try to improve this structure. |
Here’s a PDF with new labels, could you please test how it works in your PDF reader? (By the way, what’s your PDF reader?) |
I too wondered about this
But I am not really sure why it needs to be used in this case - it appears Weasyprint is treating The above
You can also look at structure trees with (I'm biased because I contributed this functionality) [{"type": "Document", "children": [
{"type": "None", "page_number": 1, "children": [
{"type": "None", "page_number": 1, "children": [
{"type": "H1", "page_number": 1, "mcids": [0], "text": ["Hello World"]},
{"type": "P", "page_number": 1, "mcids": [1], "text": ["Lorem ipsum dolor sit amet consectetur adipiscing elit pellentesque, erosblandit porttitor primis mollis nisi in nunc, ante interdum vestibulum viverramattis et sociosqu. Faucibus a risus laoreet posuere placerat class tempusvehicula, dignissim congue netus odio potenti phasellus malesuada sodaleshabitant, egestas id imperdiet sociis vitae taciti curabitur."]}]}]}]}] Clearly |
Hello,
I'm trying to generate a PDF from HTML with PDF/UA, but it returns strange tagging.
Is this labeling correct? Is there any way to modify it? It is the first time I use your library, and I am very interested in the accessibility part.
I am using Adobe Acrobat Pro to look at the labeling.
Thank you in advance.
HTML:
Python (Flask):
Result:
Expected result:
The text was updated successfully, but these errors were encountered: