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.