1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

Fixing some smaller bugs & do some cleanup. viewer_worker.html UI is now

This commit is contained in:
Julian Viereck 2011-06-22 11:08:30 +02:00
parent 39ac389a7e
commit 52a117d32a
3 changed files with 89 additions and 65 deletions

3
pdf.js
View file

@ -2867,7 +2867,7 @@ var CanvasGraphics = (function() {
this.ctx.scale(1, -1);
if (this.ctx.$showText) {
this.ctx.$showText(this.current.y, Fonts.charsToUnicode(text));
this.ctx.$showText(this.current.y, text, Fonts.charsToUnicode(text));
} else {
text = Fonts.charsToUnicode(text);
this.ctx.translate(this.current.x, -1 * this.current.y);
@ -3423,7 +3423,6 @@ var CanvasGraphics = (function() {
TODO("Images with "+ numComps + " components per pixel");
}
}
console.log("paintImageXObject", w, h);
tmpCanvas.putImageData(imgData, 0, 0);
ctx.drawImage(tmpCanvas.getCanvas(), 0, -h);
this.restore();