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:
parent
11e0ab3530
commit
96fff4cc74
4 changed files with 22 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue