UtilSautinSoftRtf2Html Method

Converts RtF to HtML.

Definition

Namespace: DevCase.ThirdParty.SautinSofts
Assembly: DevCase.net48.ThirdParty.SautinSoft (in DevCase.net48.ThirdParty.SautinSoft.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string Rtf2Html(
	string rtfText,
	Encoding textEncoding = null,
	bool saveImagesToDisk = false,
	string imageFolder = "C:\"
)

Parameters

rtfText  String
The rich text to convert.
textEncoding  Encoding  (Optional)
The text encoding.
saveImagesToDisk  Boolean  (Optional)
If set to , converted images are saved to a directory on hard drive.
imageFolder  String  (Optional)
The image directory to save the images if saveImagesToDisk parameter is set to .

The directory must exist.

Return Value

String
The resulting text.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

sautinsoft.htmltortf by SautinSoft

sautinsoft.rtftohtml by SautinSoft

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also