Special-case 24-bit RGB image-handling.
Clean up putBinaryImageData().
Introduce ImageKind constants.
Ctrl/cmd + S = save PDF instead of viewer.html
Merge pull request #4350 from Rob--W/save-as-saves-pdf

Ctrl/cmd + S = save PDF instead of viewer.html
Fill the initial JBIG2 buffer with 0xFF only if defaultPixelValue is set

Per the TypedArray specification, ArrayBuffers are initialized with zeros.

http://www.khronos.org/registry/typedarray/specs/latest/#5
Skip the Math.sqrt for clamped values in convertToRgb

No need to compute the square root of clamped values.
Only the values in the range ]0,1[ need to be processed.
Made viewer's webViewerLoad callable from outside viewer.js

To allow manual triggering when DOMContentLoaded can not be relied upon.
Merge pull request #4345 from p01/patch-1

Skip the Math.sqrt for clamped values in convertToRgb
Merge pull request #4346 from p01/patch-2

Fill the initial JBIG2 buffer with 0xFF only if defaultPixelValue is set
Merge pull request #4333 from dferer/requirable-viewer

Made viewer's webViewerLoad callable from outside viewer.js
Remove embeddedFontsUsed from API.
Use a cache to minimize the number of Name objects.
Put mask data to the canvas in small slices.
Faster JBIG2 decoding
Refactor XRef in obj.js

- remove unused "if (e instanceof Stream)" in XRef_fetch
- split XRef_fetch into XRef_fetchUncompressed and XRef_fetchCompressed
This explains the actual code flow better
- add line breaks after functions
- change the document to conform to current StyleGuide
Merge pull request #4344 from brendandahl/remove-embed-font

Remove embeddedFontsUsed from API.
Fix the combineUrl function

* Allow a url to omit the protocol and use the same protocol as the
* current page
Remove unused calculation from bad merge.
Merge pull request #4361 from brendandahl/remove-unused-code

Remove unused calculation from bad merge.