Merge pull request #1269 from brendandahl/fixbidi

Fix missing bidi for extension.
This commit is contained in:
notmasteryet 2012-02-23 09:30:25 -08:00
commit 42a428af88
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
'use strict';
var bidi = (function bidiClosure() {
var bidi = PDFJS.bidi = (function bidiClosure() {
// Character types for symbols from 0000 to 00FF.
var baseTypes = [
'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',

View File

@ -1097,7 +1097,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
textDiv.style.fontSize = fontHeight + 'px';
textDiv.style.left = text.geom.x + 'px';
textDiv.style.top = (text.geom.y - fontHeight) + 'px';
textDiv.textContent = bidi(text, -1);
textDiv.textContent = PDFJS.bidi(text, -1);
textDiv.dir = text.direction;
textDiv.dataset.textLength = text.length;
this.textDivs.push(textDiv);