mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fix insertion of blank pages during printing due to non-matching page sizes
This commit is contained in:
parent
21ed8ff71d
commit
aeabd0db20
3 changed files with 6 additions and 6 deletions
|
@ -1166,10 +1166,6 @@ var PDFViewerApplication = {
|
|||
// Firefox incorrectly reports support for the other value.
|
||||
'@supports ((size:A4) and (size:1pt 1pt)) {' +
|
||||
'@page { size: ' + pageSize.width + 'pt ' + pageSize.height + 'pt;}' +
|
||||
// The canvas and each ancestor node must have a height of 100% to make
|
||||
// sure that each canvas is printed on exactly one page.
|
||||
'#printContainer {height:100%}' +
|
||||
'#printContainer > div {width:100% !important;height:100% !important;}' +
|
||||
'}';
|
||||
body.appendChild(this.pageStyleSheet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue