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)
范围 | 类型 | 描述 |
---|---|---|
fullFileName | String | 带有用于以所选格式保存识别结果的路径的文件名。 |
saveFormat | SaveFormat | 文档格式(Docx、Txt、Pdf)。 |
applySpellingCorrection | Boolean | 设置 true 以纠正拼写错误的单词,以防您的识别结果中有这样的拼写错误。 |
language | SpellCheckLanguage | 拼写检查字典(可选)。 |
dictionaryPath | String | 可选。 .txt 格式的用户字典的完整路径。格式为 [word - space - frequence(number)]. 示例:23135851162\nthat 3400031103\n |
也可以看看
- enum SaveFormat
- enum SpellCheckLanguage
- class RecognitionResult
- 命名空间 Aspose.OCR
- 部件 Aspose.OCR
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)
范围 | 类型 | 描述 |
---|---|---|
stream | MemoryStream | MemoryStream 用于以所选格式保存识别结果。 |
saveFormat | SaveFormat | 文档格式(Docx、Txt、Pdf)。 |
applySpellingCorrection | Boolean | 设置 true 以纠正拼写错误的单词,以防您的识别结果中有这样的拼写错误。 |
language | SpellCheckLanguage | 拼写检查字典(可选)。 |
dictionaryPath | String | 可选。 .txt 格式的用户字典的完整路径。格式为 [word - space - frequence(number)]. 示例:23135851162\nthat 3400031103\n |
也可以看看
- enum SaveFormat
- enum SpellCheckLanguage
- class RecognitionResult
- 命名空间 Aspose.OCR
- 部件 Aspose.OCR