Merge pull request #12201 from brendandahl/enable-forms
Enable renderInteractiveForms by default.
This commit is contained in:
commit
e50cb4c9d5
@ -149,7 +149,7 @@
|
|||||||
},
|
},
|
||||||
"renderInteractiveForms": {
|
"renderInteractiveForms": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": true
|
||||||
},
|
},
|
||||||
"enablePermissions": {
|
"enablePermissions": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
10
web/app.js
10
web/app.js
@ -1415,8 +1415,14 @@ const PDFViewerApplication = {
|
|||||||
this.setTitle(contentDispositionFilename);
|
this.setTitle(contentDispositionFilename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.IsAcroFormPresent) {
|
if (info.IsXFAPresent) {
|
||||||
console.warn("Warning: AcroForm/XFA is not supported");
|
console.warn("Warning: XFA is not supported");
|
||||||
|
this._delayedFallback(UNSUPPORTED_FEATURES.forms);
|
||||||
|
} else if (
|
||||||
|
info.IsAcroFormPresent &&
|
||||||
|
!this.pdfViewer.renderInteractiveForms
|
||||||
|
) {
|
||||||
|
console.warn("Warning: AcroForm support is not enabled");
|
||||||
this._delayedFallback(UNSUPPORTED_FEATURES.forms);
|
this._delayedFallback(UNSUPPORTED_FEATURES.forms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ const defaultOptions = {
|
|||||||
},
|
},
|
||||||
renderInteractiveForms: {
|
renderInteractiveForms: {
|
||||||
/** @type {boolean} */
|
/** @type {boolean} */
|
||||||
value: false,
|
value: true,
|
||||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||||
},
|
},
|
||||||
sidebarViewOnLoad: {
|
sidebarViewOnLoad: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user