File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1193,6 +1193,12 @@ class WidgetAnnotation extends Annotation {
1193
1193
} ) ;
1194
1194
data . defaultFieldValue = this . _decodeFormValue ( defaultFieldValue ) ;
1195
1195
1196
+ // When no "V" entry exists, let the fieldValue fallback to the "DV" entry
1197
+ // (fixes issue13823.pdf).
1198
+ if ( fieldValue === undefined && data . defaultFieldValue !== null ) {
1199
+ data . fieldValue = data . defaultFieldValue ;
1200
+ }
1201
+
1196
1202
data . alternativeText = stringToPDFString ( dict . get ( "TU" ) || "" ) ;
1197
1203
1198
1204
const defaultAppearance =
Original file line number Diff line number Diff line change
1
+ https://github.com/mozilla/pdf.js/files/6907771/Formular_T_default.pdf
Original file line number Diff line number Diff line change 1046
1046
"enableXfa" : true ,
1047
1047
"type" : " eq"
1048
1048
},
1049
+ { "id" : " issue13823" ,
1050
+ "file" : " pdfs/issue13823.pdf" ,
1051
+ "md5" : " 8ca53bba9b2c68f5cd87f13a963e6b6a" ,
1052
+ "rounds" : 1 ,
1053
+ "link" : true ,
1054
+ "type" : " eq" ,
1055
+ "forms" : true
1056
+ },
1049
1057
{ "id" : " xfa_bug1718521_1" ,
1050
1058
"file" : " pdfs/xfa_bug1718521_1.pdf" ,
1051
1059
"md5" : " 9b89dd9e6a4c6c3258ca24debd806863" ,
You can’t perform that action at this time.
0 commit comments