the "hieght" and the 72dpi<->96dpi fixes

This commit is contained in:
notmasteryet 2011-06-29 22:43:59 -05:00
parent 29d0d8a8a9
commit 5ece4da552
8 changed files with 48 additions and 27 deletions

View file

@ -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() {