var IRQueue = this.IRQueue;
function next() {
- console.log("next executeIRQueue", startIdx, length);
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next);
}
next();
// 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;
}
}
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);
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);
});
}
- // 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;
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));
}