Session.ConvertHTMLToRtf Method

This method converts an HTML document to an RTF document.

Syntax

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

Parameters Description
htmlPath The file name and path to the HTML document that will be converted.
rtfPath The file name and path of the RTF 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 HTML file to RTF.

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