|
Foxit PDF SDK
|
Public 成员函数 | |
| PDFACompliance () | |
| 构造函数。 | |
| PDFACompliance (PDFACompliance other) | |
| 带另一个PDF/A合规性对象的构造函数。 更多... | |
| ResultInformation | convertPDFFile (String src_pdf_path, String saved_pdf_path, int convert_to_version, int view_or_print_condition, boolean convert_problem_pages_into_image, boolean convert_all_pages_into_image, int image_resolution, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 使用指定的PDF/A版本转换PDF文件。 更多... | |
| ResultInformation | convertPDFFile (String src_pdf_path, String saved_pdf_path, int convert_to_version, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 使用指定的PDF/A版本转换PDF文件。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| ResultInformation | verify (int verify_version, String src_pdf_path, int first_page_index, int last_page_index, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| 使用指定的PDF/A版本验证PDF文件。 更多... | |
静态 Public 属性 | |
| static final int | e_VersionPDFA1a = 1 |
| PDF/A-1a。 | |
| static final int | e_VersionPDFA1b = 2 |
| PDF/A-1b。 | |
| static final int | e_VersionPDFA1bWithoutFBC = 9 |
| PDF/A-1b(无后备转换),仅用于转换。 | |
| static final int | e_VersionPDFA2a = 3 |
| PDF/A-2a。 | |
| static final int | e_VersionPDFA2b = 4 |
| PDF/A-2b。 | |
| static final int | e_VersionPDFA2bWithoutFBC = 10 |
| PDF/A-2b(无后备转换),仅用于转换。 | |
| static final int | e_VersionPDFA2u = 5 |
| PDF/A-2u。 | |
| static final int | e_VersionPDFA3a = 6 |
| PDF/A-3a。 | |
| static final int | e_VersionPDFA3b = 7 |
| PDF/A-3b。 | |
| static final int | e_VersionPDFA3bWithoutFBC = 11 |
| PDF/A-3b(无后备转换),仅用于转换。 | |
| static final int | e_VersionPDFA3u = 8 |
| PDF/A-3u。 | |
此类可用于PDF/A合规性验证或将PDF文件转换为PDF/A格式。 请确保ComplianceEngine 已成功初始化。
| com.foxit.sdk.addon.compliance.PDFACompliance.PDFACompliance | ( | PDFACompliance | other | ) |
带另一个PDF/A合规性对象的构造函数。
| [in] | other | 另一个PDF/A合规性对象。 |
| ResultInformation com.foxit.sdk.addon.compliance.PDFACompliance.convertPDFFile | ( | String | src_pdf_path, |
| String | saved_pdf_path, | ||
| int | convert_to_version, | ||
| int | view_or_print_condition, | ||
| boolean | convert_problem_pages_into_image, | ||
| boolean | convert_all_pages_into_image, | ||
| int | image_resolution, | ||
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
使用指定的PDF/A版本转换PDF文件。
| [in] | src_pdf_path | 要转换的源PDF文件的完整路径。这不应该是空字符串。 |
| [in] | saved_pdf_path | 保存转换后PDF文件的完整路径。这不应该是空字符串。 |
| [in] | convert_to_version | 要转换的PDF/A版本。请参考从com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA1a 开始的值, 这应该是这些值之一。 |
| [in] | view_or_print_condition | 查看或打印条件。请参考从com.foxit.sdk.addon.compliance.ComplianceEngine.e_ViewOrPrintConditionAuto 开始的值, 这应该是这些值之一。 |
| [in] | image_resolution | 转换图像的分辨率(PPI)。有效范围:60-1200。 仅当convert_to_version不是com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA1a 、com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA2a 和com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA3a 时才有效。 |
| [in] | progress_callback | 由用户实现的进度回调,可用于获取进度数据。 这可以是null。默认值:null。 |
| ResultInformation com.foxit.sdk.addon.compliance.PDFACompliance.convertPDFFile | ( | String | src_pdf_path, |
| String | saved_pdf_path, | ||
| int | convert_to_version, | ||
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
使用指定的PDF/A版本转换PDF文件。
| [in] | src_pdf_path | 要转换的源PDF文件的完整路径。这不应该是空字符串。 |
| [in] | saved_pdf_path | 保存转换后PDF文件的完整路径。这不应该是空字符串。 |
| [in] | convert_to_version | 要转换的PDF/A版本。请参考从com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA1a 开始的值,这应该是这些值之一。 |
| [in] | progress_callback | 由用户实现的进度回调,可用于获取进度数据。 这可以是null。默认值:null。 |
| synchronized void com.foxit.sdk.addon.compliance.PDFACompliance.delete | ( | ) |
| boolean com.foxit.sdk.addon.compliance.PDFACompliance.isEmpty | ( | ) |
检查当前对象是否为空。
当前对象为空时,意味着当前对象无用。
| ResultInformation com.foxit.sdk.addon.compliance.PDFACompliance.verify | ( | int | verify_version, |
| String | src_pdf_path, | ||
| int | first_page_index, | ||
| int | last_page_index, | ||
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
使用指定的PDF/A版本验证PDF文件。
| [in] | verify_version | 要验证的PDF/A版本。 请参考从com.foxit.sdk.addon.compliance.PDFACompliance.e_VersionPDFA1a 开始的值, 这应该是这些值之一。 |
| [in] | src_pdf_path | 要验证的源PDF文件的完整路径。这不应该是空字符串。 |
| [in] | first_page_index | 要验证的第一页的索引,从0开始。默认值:0。 |
| [in] | last_page_index | 要验证的最后一页的索引。如果这是-1,那意味着 源PDF文件的所有页面都将被验证(忽略first_page_index)。 默认值:-1。 |
| [in] | progress_callback | 由用户实现的进度回调,可用于获取进度数据。 这可以是null。默认值:null。 |