mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Handle appending consistently in the xfaLayer regardless of rendering intent (PR 17177 follow-up)
After PR 17177 the interface of `XfaLayerBuilder` is now inconsistent, since whether or not we directly append the xfaLayer to the DOM now depends on the rendering intent.
This commit is contained in:
parent
fbfacf8828
commit
097f214222
3 changed files with 3 additions and 8 deletions
|
@ -28,7 +28,6 @@ function getXfaHtmlForPrinting(printContainer, pdfDocument) {
|
|||
printContainer.append(page);
|
||||
|
||||
const builder = new XfaLayerBuilder({
|
||||
pageDiv: page,
|
||||
pdfPage: null,
|
||||
annotationStorage: pdfDocument.annotationStorage,
|
||||
linkService,
|
||||
|
@ -37,6 +36,7 @@ function getXfaHtmlForPrinting(printContainer, pdfDocument) {
|
|||
const viewport = getXfaPageViewport(xfaPage, { scale });
|
||||
|
||||
builder.render(viewport, "print");
|
||||
page.append(builder.div);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue