mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[GENERIC viewer] Fix printing regression from PR 13411
I missed this during review, since some of the changes in `web/pdf_print_service.js` broke printing. Also, as part of these changes the patch replaces what looks like unnecessary `setAttribute` usage with "regular" `className` assignment and finally updates a couple of the CSS-rules to be more consistent.
This commit is contained in:
parent
f2ade671ec
commit
daf8461489
4 changed files with 7 additions and 9 deletions
|
@ -1002,7 +1002,7 @@ function getXfaHtmlForPrinting(printContainer, pdfDocument) {
|
|||
const scale = Math.round(CSS_UNITS * 100) / 100;
|
||||
for (const xfaPage of xfaHtml.children) {
|
||||
const page = document.createElement("div");
|
||||
page.setAttribute("class", "xfaPrintedPage");
|
||||
page.className = "xfaPrintedPage";
|
||||
printContainer.appendChild(page);
|
||||
|
||||
const { width, height } = xfaPage.attributes.style;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue