When running FreeSpire.Doc in .NET 6 or 8, I experience an issue when saving to RTF. (version 12.2.0
Sample code:
Document document = new Document();
document.LoadFromFile(@"C:\temp\test.docx");
document.Replace("{{Name}}", "Username", true, false);
document.SaveToFile($@"C:\temp\output\User.rtf", FileFormat.Rtf);
document.SaveToFile($@"C:\temp\output\User.htm", FileFormat.Html);
document.SaveToTxt($@"C:\temp\output\User.txt", Encoding.Default);
The htm and txt files are all good.
The RTF-file has a "1" prepended to all lines in the file.
This issue does not occur in .NET Framework 4.8