mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add option enableXfa to the viewer
This commit is contained in:
parent
afb8c4fd25
commit
a0a4cd3f8a
3 changed files with 6 additions and 2 deletions
|
@ -1555,7 +1555,7 @@ const PDFViewerApplication = {
|
|||
// Note: `isPureXfa === true` implies that `enableXfa = true` was set.
|
||||
!pdfDocument.isPureXfa
|
||||
) {
|
||||
console.warn("Warning: XFA is not supported");
|
||||
console.warn("Warning: XFA is not enabled");
|
||||
this.fallback(UNSUPPORTED_FEATURES.forms);
|
||||
} else if (
|
||||
(info.IsAcroFormPresent || info.IsXFAPresent) &&
|
||||
|
|
|
@ -206,7 +206,7 @@ const defaultOptions = {
|
|||
enableXfa: {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
kind: OptionKind.API,
|
||||
kind: OptionKind.API + OptionKind.PREFERENCE,
|
||||
},
|
||||
fontExtraProperties: {
|
||||
/** @type {boolean} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue