Refactoring of XRef table write support (in preparation for XRef stream write support)

 - Trailer dictionary creation now lives in its own function "createTrailerDict"
   (that will be used by XRef stream creation too)
 - writeXRefTableTrailer (WAS writeTrailer) now takes care of writing the XRef
   table too (previously it was demanded to the caller)
5 files changed