保存

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

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

public void Save(string fullFileName, SaveFormat saveFormat, bool applySpellingCorrection, 
    SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, 
    string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
ParameterType描述
fullFileNameString用于保存识别结果的文件名(含路径),采用所选格式。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf、Xlsx、Rtf、Json、Xml)。
applySpellingCorrectionBoolean设置为 true 可纠正识别结果中出现的拼写错误。
languageSpellCheckLanguage拼写检查字典(可选)。
dictionaryPathString可选。用户字典的完整路径,采用 .txt 格式。格式为 [word - space - frequence(number)]。示例:the 23135851162\nthat 3400031103\n
embeddedFontPathString可选。用户字体的完整路径。
optimizePdfPdfOptimizationMode通过降低背景图像的质量来减小 PDF 文件大小。默认情况下,保留原始图像质量。

另请参见


Save(string, SaveFormat, string, PdfOptimizationMode)

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

public void Save(string fullFileName, SaveFormat saveFormat, string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
ParameterType描述
fullFileNameString用于保存识别结果的文件名(含路径),采用所选格式。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf、Xlsx、Rtf、Json、Xml)。
embeddedFontPathString可选。用户字体的完整路径。
optimizePdfPdfOptimizationMode通过降低背景图像的质量来减小 PDF 文件大小。默认情况下,保留原始图像质量。

另请参见


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

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

public void Save(MemoryStream stream, SaveFormat saveFormat, bool applySpellingCorrection, 
    SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, 
    string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
ParameterType描述
MemoryStream用于以所选格式保存识别结果的 MemoryStream。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf)。
applySpellingCorrectionBoolean设置为 true 可纠正识别结果中出现的拼写错误。
languageSpellCheckLanguage拼写检查字典(可选)。
dictionaryPathString可选。用户字典的完整路径,采用 .txt 格式。格式为 [word - space - frequence(number)]。示例:the 23135851162\nthat 3400031103\n
embeddedFontPathString可选。用户字体的完整路径。
optimizePdfPdfOptimizationMode通过降低背景图像的质量来减小 PDF 文件大小。默认情况下,保留原始图像质量。

另请参见


Save(MemoryStream, SaveFormat, string, PdfOptimizationMode)

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

public void Save(MemoryStream stream, SaveFormat saveFormat, string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
ParameterType描述
MemoryStream用于以所选格式保存识别结果的 MemoryStream。
saveFormatSaveFormat文档格式(Docx、Txt、Pdf)。
embeddedFontPathString可选。用户字体的完整路径。
optimizePdfPdfOptimizationMode通过降低背景图像的质量来减小 PDF 文件大小。默认情况下,保留原始图像质量。

另请参见