1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Implement paintReadyJpegXObject + add infrastructure to handle JpegStreams

This commit is contained in:
Julian Viereck 2011-09-07 14:45:38 -07:00
parent 5bfa9e4f3b
commit d887d2bd29
3 changed files with 100 additions and 42 deletions

View file

@ -22,8 +22,7 @@ var WorkerHandler = {
// but stops at one point and sends the result back to the main thread.
var gfx = new CanvasGraphics(null);
var fonts = [];
// TODO: Figure out how image loading is handled inside the worker.
var images = new ImagesLoader();
var images = [];
// Pre compile the pdf page and fetch the fonts/images.
var preCompilation = page.preCompile(gfx, fonts, images);
@ -76,9 +75,9 @@ var WorkerHandler = {
handler.send("page", {
pageNum: pageNum,
fonts: fontsMin,
images: [],
images: images,
preCompilation: preCompilation,
});
}, this);
}
}
}