mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #14218 from janekotovich/subform_min_0
XFA subform with occur min=0 and no bound data displaying.
This commit is contained in:
commit
e136afbabc
4 changed files with 15 additions and 0 deletions
|
@ -635,6 +635,13 @@ class Binder {
|
|||
/* skipConsumed = */ this.emptyMerge
|
||||
).next().value;
|
||||
if (!match) {
|
||||
// If there is no match (no data) and `min === 0` then
|
||||
// the container is entirely excluded.
|
||||
// https://www.pdfa.org/norm-refs/XFA-3_3.pdf#G12.1428332
|
||||
if (min === 0) {
|
||||
uselessNodes.push(child);
|
||||
continue;
|
||||
}
|
||||
// We're in matchTemplate mode so create a node in data to reflect
|
||||
// what we've in template.
|
||||
const nsId =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue