File tree 4 files changed +15
-0
lines changed
4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -635,6 +635,13 @@ class Binder {
635
635
/* skipConsumed = */ this . emptyMerge
636
636
) . next ( ) . value ;
637
637
if ( ! match ) {
638
+ // If there is no match (no data) and `min === 0` then
639
+ // the container is entirely excluded.
640
+ // https://www.pdfa.org/norm-refs/XFA-3_3.pdf#G12.1428332
641
+ if ( min === 0 ) {
642
+ uselessNodes . push ( child ) ;
643
+ continue ;
644
+ }
638
645
// We're in matchTemplate mode so create a node in data to reflect
639
646
// what we've in template.
640
647
const nsId =
Original file line number Diff line number Diff line change 213
213
! issue4402_reduced.pdf
214
214
! issue845r.pdf
215
215
! issue3405r.pdf
216
+ ! issue14130.pdf
216
217
! issue7339_reduced.pdf
217
218
! issue3438.pdf
218
219
! issue11403_reduced.pdf
Original file line number Diff line number Diff line change 4402
4402
"link" : false ,
4403
4403
"type" : " eq"
4404
4404
},
4405
+ { "id" : " issue14130" ,
4406
+ "file" : " pdfs/issue14130.pdf" ,
4407
+ "md5" : " 82e7efb0a10122e793fc64348d93dc4e" ,
4408
+ "enableXfa" : true ,
4409
+ "rounds" : 1 ,
4410
+ "type" : " eq"
4411
+ },
4405
4412
{ "id" : " issue6151" ,
4406
4413
"file" : " pdfs/issue6151.pdf" ,
4407
4414
"md5" : " 926f8c6b25e6f0978759f7947d70e079" ,
You can’t perform that action at this time.
0 commit comments