|
|
@ -1374,7 +1374,6 @@ var PDFPageView = (function PDFPageViewClosure() { |
|
|
|
|
|
|
|
|
|
|
|
// The rendered size of the canvas, relative to the size of canvasWrapper.
|
|
|
|
// The rendered size of the canvas, relative to the size of canvasWrapper.
|
|
|
|
canvas.style.width = (PRINT_OUTPUT_SCALE * 100) + '%'; |
|
|
|
canvas.style.width = (PRINT_OUTPUT_SCALE * 100) + '%'; |
|
|
|
canvas.style.height = (PRINT_OUTPUT_SCALE * 100) + '%'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' + |
|
|
|
var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' + |
|
|
|
(1 / PRINT_OUTPUT_SCALE) + ')'; |
|
|
|
(1 / PRINT_OUTPUT_SCALE) + ')'; |
|
|
@ -1383,8 +1382,6 @@ var PDFPageView = (function PDFPageViewClosure() { |
|
|
|
|
|
|
|
|
|
|
|
var printContainer = document.getElementById('printContainer'); |
|
|
|
var printContainer = document.getElementById('printContainer'); |
|
|
|
var canvasWrapper = document.createElement('div'); |
|
|
|
var canvasWrapper = document.createElement('div'); |
|
|
|
canvasWrapper.style.width = viewport.width + 'pt'; |
|
|
|
|
|
|
|
canvasWrapper.style.height = viewport.height + 'pt'; |
|
|
|
|
|
|
|
canvasWrapper.appendChild(canvas); |
|
|
|
canvasWrapper.appendChild(canvas); |
|
|
|
printContainer.appendChild(canvasWrapper); |
|
|
|
printContainer.appendChild(canvasWrapper); |
|
|
|
|
|
|
|
|
|
|
|