mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
commit
d0f87457d7
3 changed files with 11 additions and 20 deletions
|
@ -60,10 +60,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
|
|||
};
|
||||
|
||||
this.renderLayer = function textLayerBuilderRenderLayer() {
|
||||
var self = this;
|
||||
var textDivs = this.textDivs;
|
||||
var bidiTexts = this.textContent;
|
||||
var textLayerDiv = this.textLayerDiv;
|
||||
var canvas = document.createElement('canvas');
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
|
@ -93,7 +90,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
|
|||
}
|
||||
}
|
||||
|
||||
textLayerDiv.appendChild(textLayerFrag);
|
||||
this.textLayerDiv.appendChild(textLayerFrag);
|
||||
this.renderingDone = true;
|
||||
this.updateMatches();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue