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;
|
||||
|
||||
function next() {
|
||||
console.log("next executeIRQueue", startIdx, length);
|
||||
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next);
|
||||
}
|
||||
next();
|
||||
@ -4903,7 +4902,6 @@ var CanvasGraphics = (function() {
|
||||
// If the promise isn't resolved yet, add the continueCallback
|
||||
// to the promise and bail out.
|
||||
if (!promise.isResolved) {
|
||||
console.log("Unresolved object: " + depObjId);
|
||||
promise.then(continueCallback);
|
||||
return i;
|
||||
}
|
||||
|
@ -160,7 +160,6 @@ var WorkerPDFDoc = (function() {
|
||||
}
|
||||
|
||||
var timeStart = new Date();
|
||||
console.log("startRenderingFromPreCompilation:", "numberOfFonts", fonts.length);
|
||||
page.startRenderingFromIRQueue(data.IRQueue, data.fonts, data.images);
|
||||
console.log("RenderingTime", (new Date()) - timeStart);
|
||||
}, this);
|
||||
|
@ -9,12 +9,10 @@ var WorkerHandler = {
|
||||
|
||||
handler.on("doc", function(data) {
|
||||
pdfDoc = new PDFDoc(new Stream(data));
|
||||
console.log("setup pdfDoc");
|
||||
});
|
||||
|
||||
handler.on("page_request", function(pageNum) {
|
||||
pageNum = parseInt(pageNum);
|
||||
console.log("about to process page", pageNum);
|
||||
|
||||
var page = pdfDoc.getPage(pageNum);
|
||||
|
||||
@ -40,11 +38,7 @@ var WorkerHandler = {
|
||||
});
|
||||
}
|
||||
|
||||
// TODO: Handle images here.
|
||||
|
||||
console.log("about to send page", pageNum);
|
||||
|
||||
if (true /* show used commands */) {
|
||||
if (false /* show used commands */) {
|
||||
var cmdMap = {};
|
||||
|
||||
var fnArray = IRQueue .fnArray;
|
||||
@ -59,16 +53,6 @@ var WorkerHandler = {
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user