3

I have many RTF documents storend in my database. I'm trying to create a webpage to render an RTF document as an image. Any ideas on how to do this?

Nebojsa Veron
  • 1,545
  • 3
  • 19
  • 36

3 Answers3

0

You can try printing to a Virtual Image Printer and then serve the image it produced.

Anton Gogolev
  • 113,561
  • 39
  • 200
  • 288
0

See this project

http://sourceforge.net/projects/rtf2html/ (Also cf. http://www.w3.org/Tools/HTMLGeneration/rtf2html.html)

Also see this question answered a year ago:

Convert Rtf to HTML

It includes a C# option on codeproject

Community
  • 1
  • 1
sehe
  • 374,641
  • 47
  • 450
  • 633
0

The easier way is convert RTF to HTML instead of image, because of:

  1. Image is a raster and will look different in various monitors
  2. Image has more size (kb) than HTML
  3. Converting to Image in even case slower than to HTML
Maxim Sautin
  • 133
  • 5