1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

Fix printing of XFA documents, by calling XfaLayerBuilder.prototype.render correctly (issue 19840)

When changing the format of various `render`-methods in PR 19365 I forgot to update the code used to print XFA documents, sorry about that.
This commit is contained in:
Jonas Jenwald 2025-04-22 09:15:52 +02:00
parent d8d3e0abf5
commit b4626a77a2

View file

@ -35,7 +35,7 @@ function getXfaHtmlForPrinting(printContainer, pdfDocument) {
});
const viewport = getXfaPageViewport(xfaPage, { scale });
builder.render(viewport, "print");
builder.render({ viewport, intent: "print" });
page.append(builder.div);
}
}