Skip to content

Commit

Permalink
Merge pull request #12201 from brendandahl/enable-forms
Browse files Browse the repository at this point in the history
Enable renderInteractiveForms by default.
  • Loading branch information
brendandahl authored Aug 12, 2020
2 parents 7edc5cb + da62be0 commit e50cb4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/chromium/preferences_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
},
"renderInteractiveForms": {
"type": "boolean",
"default": false
"default": true
},
"enablePermissions": {
"type": "boolean",
Expand Down
10 changes: 8 additions & 2 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,14 @@ const PDFViewerApplication = {
this.setTitle(contentDispositionFilename);
}

if (info.IsAcroFormPresent) {
console.warn("Warning: AcroForm/XFA is not supported");
if (info.IsXFAPresent) {
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);
}

Expand Down
2 changes: 1 addition & 1 deletion web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const defaultOptions = {
},
renderInteractiveForms: {
/** @type {boolean} */
value: false,
value: true,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
sidebarViewOnLoad: {
Expand Down

0 comments on commit e50cb4c

Please sign in to comment.