File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ var Driver = (function DriverClosure() {
519
519
styleElement : xfaStyleElement ,
520
520
} ) ;
521
521
loadingTask . promise . then (
522
- doc => {
522
+ async doc => {
523
523
if ( task . enableXfa ) {
524
524
task . fontRules = "" ;
525
525
for ( const rule of xfaStyleElement . sheet . cssRules ) {
@@ -531,6 +531,15 @@ var Driver = (function DriverClosure() {
531
531
task . optionalContentConfigPromise =
532
532
doc . getOptionalContentConfig ( ) ;
533
533
534
+ if ( task . optionalContent ) {
535
+ const entries = Object . entries ( task . optionalContent ) ,
536
+ optionalContentConfig =
537
+ await task . optionalContentConfigPromise ;
538
+ for ( const [ id , visible ] of entries ) {
539
+ optionalContentConfig . setVisibility ( id , visible ) ;
540
+ }
541
+ }
542
+
534
543
this . _nextPage ( task , failure ) ;
535
544
} ,
536
545
err => {
Original file line number Diff line number Diff line change 5025
5025
"rounds" : 1 ,
5026
5026
"type" : " eq"
5027
5027
},
5028
+ { "id" : " issue13931-hidden" ,
5029
+ "file" : " pdfs/issue13931.pdf" ,
5030
+ "md5" : " 799d5025787115d22863ae23a3042491" ,
5031
+ "rounds" : 1 ,
5032
+ "type" : " eq" ,
5033
+ "optionalContent" : {
5034
+ "7R" : false
5035
+ }
5036
+ },
5028
5037
{ "id" : " issue2829" ,
5029
5038
"file" : " pdfs/issue2829.pdf" ,
5030
5039
"md5" : " f32b28cf8792f6ccc470446bfbb38584" ,
You can’t perform that action at this time.
0 commit comments