Removing some console.log statements.
This commit is contained in:
parent
c370b8a428
commit
cda4c04312
2
pdf.js
2
pdf.js
@ -3461,7 +3461,6 @@ var Page = (function() {
|
|||||||
var IRQueue = this.IRQueue;
|
var IRQueue = this.IRQueue;
|
||||||
|
|
||||||
function next() {
|
function next() {
|
||||||
console.log("next executeIRQueue", startIdx, length);
|
|
||||||
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next);
|
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next);
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
@ -4903,7 +4902,6 @@ var CanvasGraphics = (function() {
|
|||||||
// If the promise isn't resolved yet, add the continueCallback
|
// If the promise isn't resolved yet, add the continueCallback
|
||||||
// to the promise and bail out.
|
// to the promise and bail out.
|
||||||
if (!promise.isResolved) {
|
if (!promise.isResolved) {
|
||||||
console.log("Unresolved object: " + depObjId);
|
|
||||||
promise.then(continueCallback);
|
promise.then(continueCallback);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,6 @@ var WorkerPDFDoc = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var timeStart = new Date();
|
var timeStart = new Date();
|
||||||
console.log("startRenderingFromPreCompilation:", "numberOfFonts", fonts.length);
|
|
||||||
page.startRenderingFromIRQueue(data.IRQueue, data.fonts, data.images);
|
page.startRenderingFromIRQueue(data.IRQueue, data.fonts, data.images);
|
||||||
console.log("RenderingTime", (new Date()) - timeStart);
|
console.log("RenderingTime", (new Date()) - timeStart);
|
||||||
}, this);
|
}, this);
|
||||||
|
@ -9,12 +9,10 @@ var WorkerHandler = {
|
|||||||
|
|
||||||
handler.on("doc", function(data) {
|
handler.on("doc", function(data) {
|
||||||
pdfDoc = new PDFDoc(new Stream(data));
|
pdfDoc = new PDFDoc(new Stream(data));
|
||||||
console.log("setup pdfDoc");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
handler.on("page_request", function(pageNum) {
|
handler.on("page_request", function(pageNum) {
|
||||||
pageNum = parseInt(pageNum);
|
pageNum = parseInt(pageNum);
|
||||||
console.log("about to process page", pageNum);
|
|
||||||
|
|
||||||
var page = pdfDoc.getPage(pageNum);
|
var page = pdfDoc.getPage(pageNum);
|
||||||
|
|
||||||
@ -40,11 +38,7 @@ var WorkerHandler = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Handle images here.
|
if (false /* show used commands */) {
|
||||||
|
|
||||||
console.log("about to send page", pageNum);
|
|
||||||
|
|
||||||
if (true /* show used commands */) {
|
|
||||||
var cmdMap = {};
|
var cmdMap = {};
|
||||||
|
|
||||||
var fnArray = IRQueue .fnArray;
|
var fnArray = IRQueue .fnArray;
|
||||||
@ -59,16 +53,6 @@ var WorkerHandler = {
|
|||||||
cmdMap[entry] += 1;
|
cmdMap[entry] += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Make a copy of the fnArray and show all cmds it has.
|
|
||||||
// var fnArray = preCompilation.fnArray.slice(0).sort();
|
|
||||||
// for (var i = 0; i < fnArray.length; true) {
|
|
||||||
// if (fnArray[i] == fnArray[i + 1]) {
|
|
||||||
// fnArray.splice(i, 1);
|
|
||||||
// } else {
|
|
||||||
// i++;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
console.log("cmds", JSON.stringify(cmdMap));
|
console.log("cmds", JSON.stringify(cmdMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user