mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
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:
parent
06994d3394
commit
8929e6b349
3 changed files with 187 additions and 167 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue