Session.ConvertRTFToHTML Method

This method converts an RTF document to an HTML document. For example, HotDocs Server uses this method when it displays a document preview during the interview.

Syntax

public void ConvertRTFToHTML ( string rtfPath, string htmlPath, int options )

Parameters Description
rtfPath The file name and path to the RTF document that will be converted.
htmlPath The file name and path to the HTML document that will be created.
options A number that indicates which options to use during the conversion. Currently, the only valid option is 0.

Example

The following Visual C# code converts an RTF file to HTML.

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Server.Session HDSSession = new HotDocs.Server.Session();
        HDSSession.ConvertRTFToHTML("c:\\temp\\original.rtf", "c:\\temp\\converted.htm",0);
    }
}