mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Include the /Lang-property, when it exists, in the StructTree-data (issue 14261)
*Please note:* This is a tentative patch, since I don't have the necessary a11y-software to actually test it.
This commit is contained in:
parent
712621b508
commit
971ac8e993
4 changed files with 10 additions and 0 deletions
|
@ -295,6 +295,10 @@ class StructTreePage {
|
|||
if (isString(alt)) {
|
||||
obj.alt = stringToPDFString(alt);
|
||||
}
|
||||
const lang = node.dict.get("Lang");
|
||||
if (isString(lang)) {
|
||||
obj.lang = stringToPDFString(lang);
|
||||
}
|
||||
|
||||
for (const kid of node.kids) {
|
||||
const kidElement =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue