mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Address review comments.
This commit is contained in:
parent
c55dade357
commit
92e355dc35
1 changed files with 5 additions and 5 deletions
|
@ -504,7 +504,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
var args = [], obj;
|
||||
|
||||
var text = '';
|
||||
var chunk = null;
|
||||
var chunk = '';
|
||||
var font = null;
|
||||
while (!isEOF(obj = parser.getObj())) {
|
||||
if (isCmd(obj)) {
|
||||
|
@ -529,15 +529,15 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
chunk += args[0];
|
||||
break;
|
||||
case "'":
|
||||
text += args[0] + ' ';
|
||||
chunk += args[0] + ' ';
|
||||
break;
|
||||
case '"':
|
||||
text += args[2] + ' ';
|
||||
chunk += args[2] + ' ';
|
||||
break;
|
||||
} // switch
|
||||
if (chunk !== null) {
|
||||
if (chunk !== '') {
|
||||
text += fontCharsToUnicode(chunk, font.translated.properties);
|
||||
chunk = null;
|
||||
chunk = '';
|
||||
}
|
||||
|
||||
args = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue