Merge pull request #13350 from calixteman/xfa_options

Add option enableXfa to the viewer
This commit is contained in:
Tim van der Meij 2021-05-07 21:16:24 +02:00 committed by GitHub
commit a2652bafd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -159,6 +159,10 @@
"type": "boolean",
"default": false
},
"enableXfa": {
"type": "boolean",
"default": false
},
"historyUpdateUrl": {
"type": "boolean",
"default": false

View File

@ -1555,7 +1555,7 @@ const PDFViewerApplication = {
// Note: `isPureXfa === true` implies that `enableXfa = true` was set.
!pdfDocument.isPureXfa
) {
console.warn("Warning: XFA is not supported");
console.warn("Warning: XFA is not enabled");
this.fallback(UNSUPPORTED_FEATURES.forms);
} else if (
(info.IsAcroFormPresent || info.IsXFAPresent) &&

View File

@ -206,7 +206,7 @@ const defaultOptions = {
enableXfa: {
/** @type {boolean} */
value: false,
kind: OptionKind.API,
kind: OptionKind.API + OptionKind.PREFERENCE,
},
fontExtraProperties: {
/** @type {boolean} */