通过命令行保存结果

Download

需要适当的 ABBYY FineReader 许可证。

使用命令行在程序启动时保存转换结果

要将扫描文档、PDF 文件和/或图像文件转换为可编辑格式并保存结果,请执行以下命令:

FineReaderOCR.exe <ImageSourceCommands> <RecognitionCommands> <ExportCommands> <OtherCommands>

FineReaderOCR.exe

程序安装文件夹中的 FineReaderOCR.exe 文件路径。

如果文件的完整路径包括空格,请将其放在引号内。

<ImageSourceCommands> - 用于识别的源文档 要了解更多信息,请参见用于转换文档的命令行参数
<RecognitionCommands> - 识别参数 要了解更多信息,请参见用于转换文档的命令行参数
<ExportCommands> - 保存结果 /out Out.Ext

Out.Ext 是包含识别结果的文件路径,其中 .Ext 是文件扩展名。如果已存在该名称的文件,它将被修改。


要查看受支持的文件格式列表,请参见受支持的文档格式

<OtherCommands> /report ReportFile 创建已完成的转换任务报告。ReportFile 是报告文件路径。

范例命令:

“C:\Program Files\ABBYY FineReader 16\FineReaderOCR.exe” D:\Documents\Document1.pdf /lang French /out D:\Documents\Result.docx /report D:\Documents\ReportFile\log.txt

以上命令将使用 OCR Editor 把名为 Document1.pdf 的法语文件转换和保存为名为 Result.docx 的文件。一个名为 ReportFile 的报告文件也将被创建。

使用命令行在程序启动时保存对比结果

要对比两个版本的文档并保存结果,请执行以下命令:

Comparator.exe /compare <ImageSourceCommands> <ComparisonCommands> <ExportCommands>

Comparator.exe /compare Comparator.exe 是程序安装文件夹中的 Comparator.exe 文件的路径。
<ImageSourceCommands> - 要对比的文档 要了解更多信息,请参见用于对比文档的命令行参数
<ComparisonCommands> - 对比设置 要了解更多信息,请参见用于对比文档的命令行参数
<ExportCommands> - 保存结果 /saveFile:Out.Ext

Out.Ext 是包含对比结果的文件路径,其中 .Ext 是文件扩展名。如果已存在该名称的文件,它将被修改。


文件扩展名应该与保存结果模式格式一致。


要查看受支持的格式列表,请参见受支持的文档格式

/saveMode:SaveMode

保存对比结果模式。用以下一个值替换 "SaveMode":

  • PdfDocument1 - 以 PDF 格式保存第一个文档,并为每个差异添加备注;
  • PdfDocument2 - 以 PDF 格式保存第二个文档,并为每个差异添加备注;
  • Word - 将差异列表保存为 Microsoft Word 表格。

范例命令:

“C:\Program Files\ABBYY FineReader 16\Comparator.exe” /compare /file1:D:\Documents\Document1.pdf /file2:D:\Documents\Document2.pdf /lang:French /recMode:AutoChoose /options:IgnorePunctDiff,UngroupDiff /saveFile:D:\Documents\Comparison.docx /saveMode:Word

以上命令将启动对法语文档 Document1.pdf 和 Document2.pdf 的对比。程序将自动确定使用 OCR 还是现有的 PDF 文本。ABBYY 对比文档 将忽略所有标点符号差异,不会分组找到的任何差异,并将把对比结果保存在名为 Comparison.docx(作为表格)的文件中。

17.05.2023 7:35:18

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.