Just like the canvas widget the text widget should be able to output its contents to an external text file, such as a PostScript file or maybe an HTML file.