XFA - Disable xfa rendering for XFAF pdfs
- we'll implement XFAF support later.
This commit is contained in:
parent
62808cb3c2
commit
04573d2dc8
@ -86,6 +86,18 @@ class Catalog {
|
||||
return shadow(this, "version", version.name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {boolean} `true` for pure XFA documents,
|
||||
* `false` for XFA Foreground documents.
|
||||
*/
|
||||
get needsRendering() {
|
||||
const needsRendering = this._catDict.get("NeedsRendering");
|
||||
if (!isBool(needsRendering)) {
|
||||
return shadow(this, "needsRendering", false);
|
||||
}
|
||||
return shadow(this, "needsRendering", needsRendering);
|
||||
}
|
||||
|
||||
get collection() {
|
||||
let collection = null;
|
||||
try {
|
||||
|
@ -849,6 +849,7 @@ class PDFDocument {
|
||||
get xfaFactory() {
|
||||
if (
|
||||
this.pdfManager.enableXfa &&
|
||||
this.catalog.needsRendering &&
|
||||
this.formInfo.hasXfa &&
|
||||
!this.formInfo.hasAcroForm
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user