|
Foxit PDF SDK
|
Public 成员函数 | |
| Preflight () | |
| 构造函数。 | |
| Preflight (Preflight other) | |
| 带另一个预检对象的构造函数。 更多... | |
| ResultInformation | analyze (PreflightSettingData preflight_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 分析PDF文件。 更多... | |
| ResultInformation | analyzeAndFixup (PreflightSettingData preflight_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 分析并修复PDF文件。 更多... | |
| boolean | canFixup (String item_key) throws com.foxit.sdk.PDFException |
| 检查项目密钥是否可以修复。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| boolean | generateReport (PreflightReportSettingData preflight_report_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 在分析或修复后生成报告。 更多... | |
| boolean | generateXMLReport (String xml_report_file_path, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 在分析或修复后生成XML报告。 更多... | |
| String | getGroupItemComment (String key) throws com.foxit.sdk.PDFException |
| 通过密钥获取组项的注释。 更多... | |
| String | getGroupItemName (String key) throws com.foxit.sdk.PDFException |
| 通过密钥获取组项的名称。 更多... | |
| java.util.ArrayList< java.lang.String > | getGroupNamesArray (int library_type, int operate_type) throws com.foxit.sdk.PDFException |
| 获取与库类型和操作类型对应的所有组名数组。 更多... | |
| java.util.ArrayList< java.lang.String > | getItemKeysArray (String group_name) throws com.foxit.sdk.PDFException |
| 使用特定组名获取项目密钥数组。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| void | setPreflightGroupLocalCallback (PreflightGroupLocalCallback callback) throws com.foxit.sdk.PDFException |
| 为预检组项设置本地化名称和注释回调。 更多... | |
此类表示与指定行业配置文件匹配的分析和修复功能,并执行检查或修复。
| com.foxit.sdk.addon.compliance.Preflight.Preflight | ( | Preflight | other | ) |
带另一个预检对象的构造函数。
| [in] | other | 另一个预检对象。 |
| ResultInformation com.foxit.sdk.addon.compliance.Preflight.analyze | ( | PreflightSettingData | preflight_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
分析PDF文件。
| [in] | preflight_setting_data | 预检设置数据。 |
| [in] | progress_callback | 由用户实现的 ProgressCallback 对象,可用于获取进度数据。 |
| ResultInformation com.foxit.sdk.addon.compliance.Preflight.analyzeAndFixup | ( | PreflightSettingData | preflight_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
分析并修复PDF文件。
| [in] | preflight_setting_data | 预检设置数据。 |
| [in] | progress_callback | 由用户实现的 ProgressCallback 对象,可用于获取进度数据。 |
| boolean com.foxit.sdk.addon.compliance.Preflight.canFixup | ( | String | item_key | ) | throws com.foxit.sdk.PDFException |
| synchronized void com.foxit.sdk.addon.compliance.Preflight.delete | ( | ) |
| boolean com.foxit.sdk.addon.compliance.Preflight.generateReport | ( | PreflightReportSettingData | preflight_report_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
在分析或修复后生成报告。
此方法应在 Preflight.analyze 或 Preflight.analyzeAndFixup 之后调用。
| [in] | preflight_report_setting_data | 预检报告设置数据。 |
| [in] | progress_callback | 由用户实现的 ProgressCallback 对象,可用于获取进度数据。 |
| boolean com.foxit.sdk.addon.compliance.Preflight.generateXMLReport | ( | String | xml_report_file_path, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
在分析或修复后生成XML报告。
此方法应在 Preflight.analyze 或 Preflight.analyzeAndFixup 之后调用。
| [in] | xml_report_file_path | 用于保存XML报告文件的完整路径。这不应该是空字符串。 |
| [in] | progress_callback | 由用户实现的 ProgressCallback 对象,可用于获取进度数据。 可以为null。默认值:null。 |
| String com.foxit.sdk.addon.compliance.Preflight.getGroupItemComment | ( | String | key | ) | throws com.foxit.sdk.PDFException |
通过密钥获取组项的注释。
仅提供英文,其他语言需要参考翻译的XML自行获取。
| [in] | key | 组项的密钥。 |
| String com.foxit.sdk.addon.compliance.Preflight.getGroupItemName | ( | String | key | ) | throws com.foxit.sdk.PDFException |
通过密钥获取组项的名称。
仅提供英文,其他语言需要参考翻译的XML自行获取。
| [in] | key | 组项的密钥。 |
| java.util.ArrayList< java.lang.String > com.foxit.sdk.addon.compliance.Preflight.getGroupNamesArray | ( | int | library_type, |
| int | operate_type | ||
| ) | throws com.foxit.sdk.PDFException |
获取与库类型和操作类型对应的所有组名数组。
| [in] | library_type | 库类型。请参考从 com.foxit.sdk.addon.compliance.PreflightSettingData.e_LibraryTypeFoxit 开始的值, 这应该是这些值之一。 |
| [in] | operate_type | 操作类型。请参考从 com.foxit.sdk.addon.compliance.PreflightSettingData.e_OperateTypeProfiles 开始的值, 这应该是这些值之一。 |
| java.util.ArrayList< java.lang.String > com.foxit.sdk.addon.compliance.Preflight.getItemKeysArray | ( | String | group_name | ) | throws com.foxit.sdk.PDFException |
| boolean com.foxit.sdk.addon.compliance.Preflight.isEmpty | ( | ) |
检查当前对象是否为空。
当前对象为空时,意味着当前对象无用。
| void com.foxit.sdk.addon.compliance.Preflight.setPreflightGroupLocalCallback | ( | PreflightGroupLocalCallback | callback | ) | throws com.foxit.sdk.PDFException |
为预检组项设置本地化名称和注释回调。
此回调由 Preflight.getGroupItemName 和 Preflight.getGroupItemComment 使用,以提供组项的本地化名称和注释。当回调中有给定密钥的本地化字符串时, 将使用它;否则将使用默认的库字符串。
| [in] | callback | 提供 PreflightGroupLocalCallback 本地化名称和注释的回调对象。 |