mozilla/pdf.js — pull request #786 by brendandahl (2011-11-09 18:06:04+00:00)
Title: Special color space JPEGS

Adds support for the inverted CMYK Adobe jpegs. While doing this I've found other jpegs that also don't work because they use color spaces besides RGB and Gray. For instance #781 has a JPEG that has one component but the color space is a separation color space.

This replaces #703. The approach is a little different and treats the jpeg as a normal decode stream which doesn't require us to add any specialized workers. It uses a modified version of notmasteryet's jpgjs code as a submodule which aligns a littler better for how we want the data.

I expect page 1 of openweb_tm-PRINT.pdf, but like always someone should verify things look okay in the ref analyzer.

Last, this is painfully slow on print quality pdf's such as in #703 and takes nearly 10 seconds per page.