Add pdf_output_obj function.

Reuses the same internals as pdf_fprintf_obj etc.
Add pdf_is_number.

Useful utility missing from our arsenal.
Tweak handling of PDF arrays during text object operator stream parsing.

Acrobat honours Tc and Tw operators found during parsing TJ arrays.
We update the code here to cope. Possibly to completely match we should
honour other operators too, but this will do for now.

This maintains the behaviour of

  tests_private/pdf/sumatra/916_-_invalid_argument_to_TJ.pdf 916.pdf

and improves the behaviour in general.
Move rdb and file entries into pdf_csi.

This makes every pdf_run_XX operator function have the same function
type. This paves the way for future changes in this area.
Bug 695021: Fix pdf_insert_page operation with empty page tree.

Patch from Thomas Fach-Pedersen to fix the operation of pdf_insert_page
when called with an empty page tree. Many thanks! As noted in the code
with a FIXME this currently throws an error.

Also, cope with being told to add a page "at" INT_MAX as meaning to
add it at the end of the document.

Possibly this code should cope with a Root without a Pages entry, or
a Pages without a Kids too, but we can fix this in future if it ever
becomes a problem.
Bug 695022: Add support for multuple image tiff files.

Patch from Thomas Fach-Pedersen. Many Thanks.
Bug 695022: Add TIFF format handler

Patch from Thomas Fach-Pedersen. Many thanks!

Add a new format handler that copes with TIFF files. This replaces
the TIFF functionality within the image format handler, and is
better because this copes with multiple images (as one image per
page).
fix memory leak in 08c632046474e72f2e08e54f31e31a343808f6cb
tolerate streamed xrefs where object 0 is missing

see https://code.google.com/p/sumatrapdf/issues/detail?id=2517 for a
document which is broken to the point where it fails to load using
reparation but loads successfully if object 0 is implicitly defined.
pdf-util.js: Simplify MuPDF object.
pdf-util.js: Use explicit type conversions in AFParseDateEx and AFParseTime.
pdf-util.js: Always use strict equality comparisons.
pdf-util.js: Hoist var statements out of for statements.

Make the scoping clearer, since Javascript doesn't have block scoping.
pdf-util.js: Fix some regexps.
pdf-util.js: Improve alert messages (also include the event value).
pdf-js.c: Cluster test fixes.

Use a fixed number for Math.random().
Return a fixed date for Date.now() and Date.UTC().
pdf-js: Pass a name string to type constructor.
Add function for creating form fields (widgets)

This feature is being implemented mostly for the purpose of permitting
the addition to a page of invisible signatures.

Also change pdf_create_annot to make freshly created annotations
printable by default.
Add const to colorspace source arguments and dependencies.
Add fz_transform_point_xy to simplify transforming a point.

Many times, the idiom p.x = x; p.y = y; fz_transform_point() is used.
This function should simplify that use case by both initializing and
transforming the point in one call.