mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
Fixes for subtile bugs that were introduced in 59283bdf6d
and 99440ab691
, among others.
This commit is contained in:
parent
8e50da78ee
commit
438e3c8f6d
6 changed files with 11 additions and 10 deletions
|
@ -179,7 +179,7 @@ var ColorSpace = (function ColorSpaceClosure() {
|
|||
return true;
|
||||
|
||||
if (n * 2 !== decode.length) {
|
||||
warning('The decode map is not the correct length');
|
||||
warn('The decode map is not the correct length');
|
||||
return true;
|
||||
}
|
||||
for (var i = 0, ii = decode.length; i < ii; i += 2) {
|
||||
|
|
|
@ -222,7 +222,7 @@ var Page = (function PageClosure() {
|
|||
},
|
||||
getLinks: function Page_getLinks() {
|
||||
var links = [];
|
||||
var annotations = pageGetAnnotations();
|
||||
var annotations = this.getAnnotations();
|
||||
var i, n = annotations.length;
|
||||
for (i = 0; i < n; ++i) {
|
||||
if (annotations[i].type != 'Link')
|
||||
|
|
|
@ -4671,7 +4671,7 @@ var CFFParser = (function CFFParserClosure() {
|
|||
|
||||
var data = charstring;
|
||||
var length = data.length;
|
||||
for (var j = 0; j <= length; j) {
|
||||
for (var j = 0; j <= length;) {
|
||||
var value = data[j++];
|
||||
if (value == 12 && data[j++] == 0) {
|
||||
data[j - 2] = 139;
|
||||
|
|
|
@ -153,7 +153,7 @@ var PDFFunction = (function PDFFunctionClosure() {
|
|||
var range = IR[9];
|
||||
|
||||
if (m != args.length)
|
||||
error('Incorrect number of arguments: ' + inputSize + ' != ' +
|
||||
error('Incorrect number of arguments: ' + m + ' != ' +
|
||||
args.length);
|
||||
|
||||
var x = args;
|
||||
|
|
|
@ -220,7 +220,7 @@ var WorkerMessageHandler = {
|
|||
return;
|
||||
}
|
||||
|
||||
console.log('page=%d - getOperatorList: time=%dms, len=%d', pageNum,
|
||||
log('page=%d - getOperatorList: time=%dms, len=%d', pageNum,
|
||||
Date.now() - start, operatorList.fnArray.length);
|
||||
|
||||
// Filter the dependecies for fonts.
|
||||
|
@ -252,7 +252,7 @@ var WorkerMessageHandler = {
|
|||
promise.reject(e);
|
||||
}
|
||||
|
||||
console.log('text indexing: page=%d - time=%dms',
|
||||
log('text indexing: page=%d - time=%dms',
|
||||
pageNum, Date.now() - start);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue