mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-10 17:15:51 +02:00
parent
869f25a489
commit
de48af76d4
@ -1104,14 +1104,18 @@ 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)) {
|
||||||
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
if (array.length >= 3) {
|
||||||
this.borderStyle.setVerticalCornerRadius(array[1]);
|
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
||||||
this.borderStyle.setWidth(array[2], this.rectangle);
|
this.borderStyle.setVerticalCornerRadius(array[1]);
|
||||||
|
this.borderStyle.setWidth(array[2], this.rectangle);
|
||||||
|
|
||||||
if (array.length === 4) {
|
if (array.length === 4) {
|
||||||
// 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 {
|
||||||
|
|||||||
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