File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,18 @@ class Catalog {
86
86
return shadow ( this , "version" , version . name ) ;
87
87
}
88
88
89
+ /**
90
+ * @type {boolean } `true` for pure XFA documents,
91
+ * `false` for XFA Foreground documents.
92
+ */
93
+ get needsRendering ( ) {
94
+ const needsRendering = this . _catDict . get ( "NeedsRendering" ) ;
95
+ if ( ! isBool ( needsRendering ) ) {
96
+ return shadow ( this , "needsRendering" , false ) ;
97
+ }
98
+ return shadow ( this , "needsRendering" , needsRendering ) ;
99
+ }
100
+
89
101
get collection ( ) {
90
102
let collection = null ;
91
103
try {
Original file line number Diff line number Diff line change @@ -882,6 +882,7 @@ class PDFDocument {
882
882
get xfaFactory ( ) {
883
883
if (
884
884
this . pdfManager . enableXfa &&
885
+ this . catalog . needsRendering &&
885
886
this . formInfo . hasXfa &&
886
887
! this . formInfo . hasAcroForm
887
888
) {
You can’t perform that action at this time.
0 commit comments