Move WorkerPDFDoc to pdf.js. Rename PDFDoc -> PDFDocModel + WorkerPDFDoc -> PDFDoc. This is required until the worker code doesn't depend on an PDFDoc instance anymore

This commit is contained in:
Julian Viereck 2011-10-08 15:19:48 +02:00
parent 06994d3394
commit 8929e6b349
3 changed files with 187 additions and 167 deletions

View file

@ -8,7 +8,9 @@ var WorkerProcessorHandler = {
var pdfDoc = null;
handler.on("doc", function(data) {
pdfDoc = new PDFDoc(new Stream(data));
// Create only the model of the PDFDoc, which is enough for
// processing the content of the pdf.
pdfDoc = new PDFDocModel(new Stream(data));
});
handler.on("page_request", function(pageNum) {