Added possibility to rescale the content to fit the size of the page.

HTML content will be rescaled to fit the width of the page if it is
wider. It will only be invoked if pagesplit is set to true, and
resizeToPage is set to true.