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:
parent
39ac389a7e
commit
52a117d32a
3 changed files with 89 additions and 65 deletions
3
pdf.js
3
pdf.js
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue