Search code examples
.netrtfpage-layout

Convert a RTF document to Image or print RTF on server


I have a situation where I want to convert a RTF document to image for archiving and printing. I am using .NET.
Are there any libraries out there that could help me with this conversion?

I need to

  • convert a RTF to image on a server
  • set the paper size that needs to be adhered to when creating the image

A commercial library is an option but I prefer OS. If there is a client side way to do that that's a valid answer as well, but server side would be extremely nice.

Edit:

Thanks for all the great answers. Since all of them involve printing a RTF document I have a follow up question:

  • What is the best way to print an RTF document on a server

Solution

  • My recommendation would be to have a print driver that dumps to an image - that way you can use the standard printing features (like including paper size) and then grab the file and use that for actual printing or archiving.

    Free & Open source version is: Virtual Image Printer driver