mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-28 18:07:21 +02:00
parent
869f25a489
commit
de48af76d4
@ -1104,7 +1104,8 @@ class Annotation {
|
|||||||
}
|
}
|
||||||
} else if (borderStyle.has("Border")) {
|
} else if (borderStyle.has("Border")) {
|
||||||
const array = borderStyle.getArray("Border");
|
const array = borderStyle.getArray("Border");
|
||||||
if (Array.isArray(array) && array.length >= 3) {
|
if (Array.isArray(array)) {
|
||||||
|
if (array.length >= 3) {
|
||||||
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
||||||
this.borderStyle.setVerticalCornerRadius(array[1]);
|
this.borderStyle.setVerticalCornerRadius(array[1]);
|
||||||
this.borderStyle.setWidth(array[2], this.rectangle);
|
this.borderStyle.setWidth(array[2], this.rectangle);
|
||||||
@ -1113,6 +1114,9 @@ class Annotation {
|
|||||||
// Dash array available
|
// Dash array available
|
||||||
this.borderStyle.setDashArray(array[3], /* forceStyle = */ true);
|
this.borderStyle.setDashArray(array[3], /* forceStyle = */ true);
|
||||||
}
|
}
|
||||||
|
} else if (array.length === 0) {
|
||||||
|
this.borderStyle.setWidth(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// There are no border entries in the dictionary. According to the
|
// There are no border entries in the dictionary. According to the
|
||||||
|
|||||||
1
test/pdfs/issue20914.pdf.link
Normal file
1
test/pdfs/issue20914.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/user-attachments/files/26097319/SiemensTest.PDF
|
||||||
@ -14020,5 +14020,13 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue20914",
|
||||||
|
"file": "pdfs/issue20914.pdf",
|
||||||
|
"md5": "5740b4600e40c6fc920d38f96a74c6a5",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user