mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
the "hieght" and the 72dpi<->96dpi fixes
This commit is contained in:
parent
29d0d8a8a9
commit
5ece4da552
8 changed files with 48 additions and 27 deletions
|
@ -306,6 +306,13 @@ function WorkerPDFDoc(canvas) {
|
|||
document.body.appendChild(div);
|
||||
},
|
||||
|
||||
"setup_page": function(data) {
|
||||
var size = data.split(",");
|
||||
var canvas = this.canvas, ctx = this.ctx;
|
||||
canvas.width = parseInt(size[0]);
|
||||
canvas.height = parseInt(size[1]);
|
||||
},
|
||||
|
||||
"fonts": function(data) {
|
||||
this.waitingForFonts = true;
|
||||
this.fontWorker.ensureFonts(data, function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue