File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1104,14 +1104,18 @@ class Annotation {
11041104 }
11051105 } else if ( borderStyle . has ( "Border" ) ) {
11061106 const array = borderStyle . getArray ( "Border" ) ;
1107- if ( Array . isArray ( array ) && array . length >= 3 ) {
1108- this . borderStyle . setHorizontalCornerRadius ( array [ 0 ] ) ;
1109- this . borderStyle . setVerticalCornerRadius ( array [ 1 ] ) ;
1110- this . borderStyle . setWidth ( array [ 2 ] , this . rectangle ) ;
1111-
1112- if ( array . length === 4 ) {
1113- // Dash array available
1114- this . borderStyle . setDashArray ( array [ 3 ] , /* forceStyle = */ true ) ;
1107+ if ( Array . isArray ( array ) ) {
1108+ if ( array . length >= 3 ) {
1109+ this . borderStyle . setHorizontalCornerRadius ( array [ 0 ] ) ;
1110+ this . borderStyle . setVerticalCornerRadius ( array [ 1 ] ) ;
1111+ this . borderStyle . setWidth ( array [ 2 ] , this . rectangle ) ;
1112+
1113+ if ( array . length === 4 ) {
1114+ // Dash array available
1115+ this . borderStyle . setDashArray ( array [ 3 ] , /* forceStyle = */ true ) ;
1116+ }
1117+ } else if ( array . length === 0 ) {
1118+ this . borderStyle . setWidth ( 0 ) ;
11151119 }
11161120 }
11171121 } else {
Original file line number Diff line number Diff line change 1+ https://github.com/user-attachments/files/26097319/SiemensTest.PDF
Original file line number Diff line number Diff line change 1402014020 "rounds" : 1 ,
1402114021 "link" : true ,
1402214022 "type" : " eq"
14023+ },
14024+ {
14025+ "id" : " issue20914" ,
14026+ "file" : " pdfs/issue20914.pdf" ,
14027+ "md5" : " 5740b4600e40c6fc920d38f96a74c6a5" ,
14028+ "rounds" : 1 ,
14029+ "link" : true ,
14030+ "type" : " eq"
1402314031 }
1402414032]
You can’t perform that action at this time.
0 commit comments