mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
XFA - Add a storage to save fields values - this is required to be able to print (or save) a document. Some pages can be unloaded (because pdf.js is lazy) and this storage will help to save their data in order to resuse them when printing or just when displaying a page again.
This commit is contained in:
parent
4d26623e59
commit
9478d2f064
5 changed files with 110 additions and 30 deletions
|
@ -941,11 +941,14 @@ class CheckButton extends XFAObject {
|
|||
style.height = size;
|
||||
}
|
||||
|
||||
const fieldId = this[$getParent]()[$getParent]()[$uid];
|
||||
const input = {
|
||||
name: "input",
|
||||
attributes: {
|
||||
class: "xfaCheckbox",
|
||||
fieldId,
|
||||
type: "radio",
|
||||
id: `${fieldId}-radio`,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -1023,6 +1026,7 @@ class ChoiceList extends XFAObject {
|
|||
|
||||
const selectAttributes = {
|
||||
class: "xfaSelect",
|
||||
fieldId: this[$getParent]()[$getParent]()[$uid],
|
||||
style,
|
||||
};
|
||||
|
||||
|
@ -1249,6 +1253,7 @@ class DateTimeEdit extends XFAObject {
|
|||
name: "input",
|
||||
attributes: {
|
||||
type: "text",
|
||||
fieldId: this[$getParent]()[$getParent]()[$uid],
|
||||
class: "xfaTextfield",
|
||||
style,
|
||||
},
|
||||
|
@ -3012,6 +3017,7 @@ class NumericEdit extends XFAObject {
|
|||
name: "input",
|
||||
attributes: {
|
||||
type: "text",
|
||||
fieldId: this[$getParent]()[$getParent]()[$uid],
|
||||
class: "xfaTextfield",
|
||||
style,
|
||||
},
|
||||
|
@ -4550,6 +4556,7 @@ class TextEdit extends XFAObject {
|
|||
html = {
|
||||
name: "textarea",
|
||||
attributes: {
|
||||
fieldId: this[$getParent]()[$getParent]()[$uid],
|
||||
class: "xfaTextfield",
|
||||
style,
|
||||
},
|
||||
|
@ -4559,6 +4566,7 @@ class TextEdit extends XFAObject {
|
|||
name: "input",
|
||||
attributes: {
|
||||
type: "text",
|
||||
fieldId: this[$getParent]()[$getParent]()[$uid],
|
||||
class: "xfaTextfield",
|
||||
style,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue