Merge pull request #13350 from calixteman/xfa_options
Add option enableXfa to the viewer
This commit is contained in:
commit
a2652bafd9
@ -159,6 +159,10 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
"enableXfa": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"historyUpdateUrl": {
|
"historyUpdateUrl": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
|
@ -1555,7 +1555,7 @@ const PDFViewerApplication = {
|
|||||||
// Note: `isPureXfa === true` implies that `enableXfa = true` was set.
|
// Note: `isPureXfa === true` implies that `enableXfa = true` was set.
|
||||||
!pdfDocument.isPureXfa
|
!pdfDocument.isPureXfa
|
||||||
) {
|
) {
|
||||||
console.warn("Warning: XFA is not supported");
|
console.warn("Warning: XFA is not enabled");
|
||||||
this.fallback(UNSUPPORTED_FEATURES.forms);
|
this.fallback(UNSUPPORTED_FEATURES.forms);
|
||||||
} else if (
|
} else if (
|
||||||
(info.IsAcroFormPresent || info.IsXFAPresent) &&
|
(info.IsAcroFormPresent || info.IsXFAPresent) &&
|
||||||
|
@ -206,7 +206,7 @@ const defaultOptions = {
|
|||||||
enableXfa: {
|
enableXfa: {
|
||||||
/** @type {boolean} */
|
/** @type {boolean} */
|
||||||
value: false,
|
value: false,
|
||||||
kind: OptionKind.API,
|
kind: OptionKind.API + OptionKind.PREFERENCE,
|
||||||
},
|
},
|
||||||
fontExtraProperties: {
|
fontExtraProperties: {
|
||||||
/** @type {boolean} */
|
/** @type {boolean} */
|
||||||
|
Loading…
Reference in New Issue
Block a user