RecognitionResult.Save

Save(string, SaveFormat, bool, SpellCheckLanguage, string)

将文档另存为纯文本、PDF 或 Microsoft Word 文档。

public void Save(string fullFileName, SaveFormat saveFormat, bool applySpellingCorrection = false, 
    SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)
范围类型描述
fullFileNameString带有用于以所选格式保存识别结果的路径的文件名。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf)。
applySpellingCorrectionBoolean设置为 true 以纠正拼写错误的单词,以防识别结果中出现此类单词。
languageSpellCheckLanguage拼写检查词典(可选)。
dictionaryPathString可选。 .txt 格式的用户字典的完整路径。格式为[word - space - frequence(number)]. 例子:the 23135851162\nthat 3400031103\n

也可以看看


Save(MemoryStream, SaveFormat, bool, SpellCheckLanguage, string)

将文档另存为纯文本、PDF 或 Microsoft Word 文档。

public void Save(MemoryStream stream, SaveFormat saveFormat, bool applySpellingCorrection = false, 
    SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)
范围类型描述
streamMemoryStreamMemoryStream,用于以选定的格式保存识别结果。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf)。
applySpellingCorrectionBoolean设置为 true 以纠正拼写错误的单词,以防识别结果中出现此类单词。
languageSpellCheckLanguage拼写检查词典(可选)。
dictionaryPathString可选。 .txt 格式的用户字典的完整路径。格式为[word - space - frequence(number)]. 例子:the 23135851162\nthat 3400031103\n

也可以看看