Added an overload of LASI.Core.Document.Paginate which takes an arbitrary function which specifies how text is to be measured. This can, for example, be used to generate pages taking into account non-fixed-width fonts.