1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Enable renderInteractiveForms by default.

This commit is contained in:
Brendan Dahl 2020-08-12 09:17:58 -07:00
parent 7edc5cb79f
commit da62be0685
3 changed files with 10 additions and 4 deletions

View file

@ -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);
}

View file

@ -121,7 +121,7 @@ const defaultOptions = {
},
renderInteractiveForms: {
/** @type {boolean} */
value: false,
value: true,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
sidebarViewOnLoad: {