andreasgal/pdf.js — pull request #635 by jviereck (2011-10-08 21:14:13+00:00)
Title: Worker implementation #3

This is a merged version of the worker branch that hopefully works. After the merge, the fonts weren't working for some pages so I've redone all the font changes, started from a scratch version of fonts.js from master again an build from there. The font's are currently processed (new Font(...)) on the main thread and not in a worker as well, but let's keep it simple for now and get something landed.

Compared to the wish list from Chris on the other pull request, I've addressed some of the points, but some still stay opened:

* The worker functionality is disabled right now as the feature detection needs to get implemented
* The "can we use UInt8Array as image data" isn't implemented due to missing feature detection
* The PDFDoc and WorkerPDFDoc as well as the Page and WorkerPage object haven't merge yet, as this requires a complete refactoring of these objects and I don't want to break more stuff/refactore more code then I've already done with these patches. However, note that the current `PDFDoc` got renamed to `PDFDocModel` and `WorkerPDFDoc` is now `PDFDoc`. That way, we don't have to change any of the APIs as you just can call the new PDFDoc as you did before.

Let's see what the bot says to this patches. Can someone please take a look at the last changes if they make sense?