Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934)
Let Parser_makeFilter return NullStream when an invalid stream is encountered (issue 3417)
Splits shared/annotation.js into core/ and display/
Add ChunkedStream.ensureByte().

This new function is much faster than ensureRange(pos, pos+1), which is a very
common case.

This speeds up the rendering of some test cases (including the Tracemonkey
paper) by 4--5%.
Merge pull request #4966 from nnethercote/faster-ensureRange-2

Add ChunkedStream.ensureByte().
Build up textChunk.str more efficiently.

PartialEvaluator.getTextContent() builds up textChunk strings 1 char at a time,
creating many 100s of 1000s of intermediate strings along the way. This patch
make it instead push chars to an array and then join them at the end, as we
have done in numerous other places.
Merge pull request #4965 from yurydelendik/annotations

Splits shared/annotation.js into core/ and display/
Implements onerror for JpegStreams
Fixes AnnotationUtils in the extension build
Merge pull request #4969 from timvandermeij/image-loading

Implements onerror for JpegStreams
Removes PDFJS.Annotation
Merge pull request #4970 from yurydelendik/AnnotationUtils

Fixes AnnotationUtils in the extension build
Merge pull request #4968 from nnethercote/glyphBuf

Build up textChunk.str more efficiently.
Not ignoring MissingDataException exception.
Removes error catch from fetchUncompressed()
Avoid allocating return object in EvaluatorPreprocessor_read().

This function can be called 100s of 1000s or even millions of times, and the
allocated return object accounts for 10% of all GC thing allocations for some
documents. It's easy to avoid, which reduces stress on the garbage collector,
and this patch does that.
Merge pull request #4972 from nnethercote/preprocessor-read

Avoid allocating return object in EvaluatorPreprocessor_read().
Merge pull request #4971 from yurydelendik/rm-suppressEncryption

Removes error catch from fetchUncompressed()
Factor out repeated Ref key string generation code.

In src/core/obj.js, we convert a Ref to a string to index into a table like
this: 'R1.0'.  This conversion is repeated numerous times.

This patch factors out the conversion into a new function.
Ref.prototype.toString().
Merge pull request #4973 from nnethercote/better-ref-keys

Factor out repeated Ref key string generation code.