mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #13745 from Snuffleupagus/dev-enableXfa
Enable XFA by default in the development viewer
This commit is contained in:
commit
2d1f60f655
2 changed files with 2 additions and 2 deletions
|
@ -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) &&
|
||||
|
|
|
@ -194,7 +194,7 @@ const defaultOptions = {
|
|||
},
|
||||
enableXfa: {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
value: typeof PDFJSDev === "undefined" || !PDFJSDev.test("PRODUCTION"),
|
||||
kind: OptionKind.API + OptionKind.PREFERENCE,
|
||||
},
|
||||
fontExtraProperties: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue