1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

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:
Calixte Denizet 2021-06-10 17:00:27 +02:00
parent c4cb71b68d
commit d7d53e7c6c
3 changed files with 13 additions and 2 deletions

View file

@ -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;
}