mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
XFA - Cannot print fields with no names
- it was not possible to print pdf file in issue #13500.
This commit is contained in:
parent
a17bd13023
commit
019699acfb
2 changed files with 13 additions and 10 deletions
|
@ -478,10 +478,10 @@ class Binder {
|
|||
if (dataChildren.length > 0) {
|
||||
this._bindOccurrences(child, [dataChildren[0]], null);
|
||||
} else if (this.emptyMerge) {
|
||||
const dataChild = new XmlObject(
|
||||
const dataChild = (child[$data] = new XmlObject(
|
||||
dataNode[$namespaceId],
|
||||
child.name || "root"
|
||||
);
|
||||
));
|
||||
dataNode[$appendChild](dataChild);
|
||||
this._bindElement(child, dataChild);
|
||||
}
|
||||
|
@ -602,7 +602,10 @@ class Binder {
|
|||
if (!match) {
|
||||
// We're in matchTemplate mode so create a node in data to reflect
|
||||
// what we've in template.
|
||||
match = new XmlObject(dataNode[$namespaceId], child.name);
|
||||
match = child[$data] = new XmlObject(
|
||||
dataNode[$namespaceId],
|
||||
child.name
|
||||
);
|
||||
if (this.emptyMerge) {
|
||||
match[$consumed] = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue