File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -518,7 +518,6 @@ const PDFViewerApplication = {
518
518
useOnlyCssZoom : AppOptions . get ( "useOnlyCssZoom" ) ,
519
519
maxCanvasPixels : AppOptions . get ( "maxCanvasPixels" ) ,
520
520
enableScripting : AppOptions . get ( "enableScripting" ) ,
521
- enableXfa : AppOptions . get ( "enableXfa" ) ,
522
521
} ) ;
523
522
pdfRenderingQueue . setViewer ( this . pdfViewer ) ;
524
523
pdfLinkService . setViewer ( this . pdfViewer ) ;
@@ -1561,7 +1560,12 @@ const PDFViewerApplication = {
1561
1560
this . setTitle ( contentDispositionFilename ) ;
1562
1561
}
1563
1562
1564
- if ( info . IsXFAPresent && ! info . IsAcroFormPresent ) {
1563
+ if (
1564
+ info . IsXFAPresent &&
1565
+ ! info . IsAcroFormPresent &&
1566
+ // Note: `isPureXfa === true` implies that `enableXfa = true` was set.
1567
+ ! pdfDocument . isPureXfa
1568
+ ) {
1565
1569
console . warn ( "Warning: XFA is not supported" ) ;
1566
1570
this . _delayedFallback ( UNSUPPORTED_FEATURES . forms ) ;
1567
1571
} else if (
You can’t perform that action at this time.
0 commit comments