diff --git a/src/evaluator.js b/src/evaluator.js index 1c277e027..e1e064f07 100644 --- a/src/evaluator.js +++ b/src/evaluator.js @@ -783,8 +783,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { dict: baseDict, properties: properties }; - } // if (type.name == 'Type3') - } // if (!descriptor) + } + } // According to the spec if 'FontDescriptor' is declared, 'FirstChar', // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem diff --git a/web/viewer.js b/web/viewer.js index 9f8b772ab..e0ab1cc90 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -358,7 +358,7 @@ var PDFView = { } else { if (moreInfo.filename) errorMoreInfo.value += '\n' + 'File: ' + moreInfo.filename; - if (moreInfo.filename) + if (moreInfo.lineNumber) errorMoreInfo.value += '\n' + 'Line: ' + moreInfo.lineNumber; } }