Use this method when you want to render a text file and import
it as an XImage. If you want import a big text file and then select
which page to draw on a Canvas use this method and select an
appropriate image frame in the draw options before drawing the
XImage on the Canvas. Every image frame is a page in the rendered
text document. Alternatively consider drawing the text on the
Canvas using Canvas DrawText.
You need to specify a DrawOptions parameter in order to set text
rendering properties such as the font or text size.
The text file must be smaller than