UtilSautinSoftHtml2Txt Method

Converts HTML text to TXT (Plain Text).

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 Html2Txt(
	string htmlText,
	Encoding textEncoding = null,
	PaperType paperType = 4,
	PageNumberingAppearence pagenumbers = 1,
	string pagenumbersFormat = "Page {page} of {numpages}",
	Orientation pageOrientation = 0,
	string pageHeader = null,
	string pageFooter = null
)

Parameters

htmlText  String
The HTML text to convert.
textEncoding  Encoding  (Optional)
The text encoding.
paperType  PaperType  (Optional)
The page size.
pagenumbers  PageNumberingAppearence  (Optional)
The page numbers.
pagenumbersFormat  String  (Optional)
The page numbers format.
pageOrientation  Orientation  (Optional)
The page orientation.
pageHeader  String  (Optional)
The page header text.
pageFooter  String  (Optional)
The page footer text.

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