This question came up in one of the mailing lists I am on -
I want to take something which is an .html file, and turn it into an image. How do I do it?
Yes, you can take a text file and convert it into an image. Please put your hand together for the swiss army knife for image manipulation - Imagemagick.
You can use the convert command (part of imagemagick package) to do this. For example, I want to convert the file mysig.txt into an image. Here is how to do it
For more tips on how to control the colors, font etc., check out the excellent tutorial at http://www.imagemagick.org/Usage/text/