Enable XFA by default in the development viewer

Given that https://bugzilla.mozilla.org/show_bug.cgi?id=1720402 has just landed, enabling XFA in the development viewer probably cannot hurt now.
This commit is contained in:
Jonas Jenwald 2021-07-16 14:12:24 +02:00
parent f1ae7d7b0e
commit e5845739fd
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -194,7 +194,7 @@ const defaultOptions = {
},
enableXfa: {
/** @type {boolean} */
value: false,
value: typeof PDFJSDev === "undefined" || !PDFJSDev.test("PRODUCTION"),
kind: OptionKind.API + OptionKind.PREFERENCE,
},
fontExtraProperties: {