mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Checkboxes must be printed (bug 1720182)
- to avoid future regressions, annotationStorage is passed to the xfa render in reftests.
This commit is contained in:
parent
4b2e0d0d01
commit
3fb30ddde5
4 changed files with 46 additions and 8 deletions
|
@ -33,7 +33,7 @@ class XfaLayer {
|
|||
element.attributes.type === "radio" ||
|
||||
element.attributes.type === "checkbox"
|
||||
) {
|
||||
if (storedData.value === element.attributes.exportedValue) {
|
||||
if (storedData.value === element.attributes.xfaOn) {
|
||||
html.setAttribute("checked", true);
|
||||
}
|
||||
if (intent === "print") {
|
||||
|
@ -82,6 +82,9 @@ class XfaLayer {
|
|||
attributes.name = `${attributes.name}-${intent}`;
|
||||
}
|
||||
for (const [key, value] of Object.entries(attributes)) {
|
||||
// We don't need to add dataId in the html object but it can
|
||||
// be useful to know its value when writing printing tests:
|
||||
// in this case, don't skip dataId to have its value.
|
||||
if (value === null || value === undefined || key === "dataId") {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue