1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Refactors getTextContent return value

This commit is contained in:
Yury Delendik 2014-01-17 13:26:00 -06:00
parent 11e0ab3530
commit 96fff4cc74
4 changed files with 22 additions and 28 deletions

View file

@ -210,7 +210,7 @@ SimpleTextLayerBuilder.prototype = {
ctx.stroke();
ctx.fill();
ctx.restore();
var textContent = this.textContent.bidiTexts[this.textCounter].str;
var textContent = this.textContent[this.textCounter].str;
ctx.font = fontHeight + 'px ' + geom.fontFamily;
ctx.fillStyle = 'black';
ctx.fillText(textContent, geom.x, geom.y);