XFA - Flush contents when breakBefore target is 'auto'
- some page can be missed in the final document because of that (see pdf in the test case which has 4 pages (when only 3 are rendered right now)
This commit is contained in:
parent
c4cb71b68d
commit
d7d53e7c6c
@ -4535,8 +4535,10 @@ class Template extends XFAObject {
|
||||
this[$extra].breakingNode = null;
|
||||
|
||||
if (node.targetType === "auto") {
|
||||
// Just ignore the break and do layout again.
|
||||
i--;
|
||||
html = root[$flushHTML]();
|
||||
if (html) {
|
||||
htmlContentAreas[i].children.push(html);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
1
test/pdfs/xfa_hsbc_closure.pdf.link
Normal file
1
test/pdfs/xfa_hsbc_closure.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://web.archive.org/web/20210610145227/https://www.hsbc.fr/content/dam/hsbc/fr/docs/pib/Cloture-Compte.pdf
|
@ -2741,6 +2741,14 @@
|
||||
"enableXfa": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "hsbc_closure",
|
||||
"file": "pdfs/xfa_hsbc_closure.pdf",
|
||||
"md5": "7d101861d6232fe5f658e8aeca5c9891",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"enableXfa": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "xfa_imm1344e",
|
||||
"file": "pdfs/xfa_imm1344e.pdf",
|
||||
"md5": "f9b8b6e7d385691efdea2544576f5eb2",
|
||||
|
Loading…
Reference in New Issue
Block a user