Click or drag to resize

HtmlToRtfMergeRtfFile(String, String, String, Encoding) Method

Merge two RTF files and create new single RTF document. Output file will be overwritten.

Namespace: SautinSoft
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2024.5.22
Syntax
public int MergeRtfFile(
	string rtfFilePath1,
	string rtfFilePath2,
	string singleMergedRtf,
	Encoding encoding
)

Parameters

rtfFilePath1  String
Path to 1st RTF document
rtfFilePath2  String
Path to 2nd RTF document
singleMergedRtf  String
Local path to save output RTF
encoding  Encoding
The encoding of the processing RTF documents.

Return Value

Int32
0 - merged successfully
1 - can't open 1st RTF document
2 - can't open 2nd RTF document
3 - merging failed
4 - can't create output file, check the output path
Remarks
A merged RTF document will contain 1st RTF document and next 2nd RTF document by order.

See Also