|
Foxit PDF SDK
|
Public Member Functions | |
| Preflight () | |
| Constructor. | |
| Preflight (Preflight other) | |
| Constructor, with another preflight object. More... | |
| ResultInformation | analyze (PreflightSettingData preflight_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| Analyze a PDF file. More... | |
| ResultInformation | analyzeAndFixup (PreflightSettingData preflight_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| Analyze and fixup a PDF file. More... | |
| boolean | canFixup (String item_key) throws com.foxit.sdk.PDFException |
| Check whether the item key can be fixuped or not. More... | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
| boolean | generateReport (PreflightReportSettingData preflight_report_setting_data, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| Generate report after analyzing or fixing. More... | |
| boolean | generateXMLReport (String xml_report_file_path, ProgressCallback progress_callback) throws com.foxit.sdk.PDFException |
| Generate an XML report after analyzing or fixing. More... | |
| String | getGroupItemComment (String key) throws com.foxit.sdk.PDFException |
| Get the comment of the group item through the key. More... | |
| String | getGroupItemName (String key) throws com.foxit.sdk.PDFException |
| Get the name of the group item through the key. More... | |
| java.util.ArrayList< java.lang.String > | getGroupNamesArray (int library_type, int operate_type) throws com.foxit.sdk.PDFException |
| Get all group names array corresponding to the library type and operation type. More... | |
| java.util.ArrayList< java.lang.String > | getItemKeysArray (String group_name) throws com.foxit.sdk.PDFException |
| Get item keys array with the specific group name. More... | |
| boolean | isEmpty () |
| Check whether current object is empty or not. More... | |
| void | setPreflightGroupLocalCallback (PreflightGroupLocalCallback callback) throws com.foxit.sdk.PDFException |
| Set a localized name and comment callback for preflight group items. More... | |
This class represents the analysis and fix-up functions that match a specified industry profile and performs checks or fix-ups.
| com.foxit.sdk.addon.compliance.Preflight.Preflight | ( | Preflight | other | ) |
Constructor, with another preflight object.
| [in] | other | Another preflight object. |
| ResultInformation com.foxit.sdk.addon.compliance.Preflight.analyze | ( | PreflightSettingData | preflight_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
Analyze a PDF file.
| [in] | preflight_setting_data | The preflight setting data. |
| [in] | progress_callback | A ProgressCallback object which is implemented by user and can be used to get progress data. |
| ResultInformation com.foxit.sdk.addon.compliance.Preflight.analyzeAndFixup | ( | PreflightSettingData | preflight_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
Analyze and fixup a PDF file.
| [in] | preflight_setting_data | The preflight setting data. |
| [in] | progress_callback | A ProgressCallback object which is implemented by user and can be used to get progress data. |
| boolean com.foxit.sdk.addon.compliance.Preflight.canFixup | ( | String | item_key | ) | throws com.foxit.sdk.PDFException |
Check whether the item key can be fixuped or not.
| [in] | item_key | The item key. It can be retrieved by Preflight.getItemKeysArray . |
| synchronized void com.foxit.sdk.addon.compliance.Preflight.delete | ( | ) |
Clean up related C++ resources immediately.
Reimplemented from com.foxit.sdk.common.Base.
| boolean com.foxit.sdk.addon.compliance.Preflight.generateReport | ( | PreflightReportSettingData | preflight_report_setting_data, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
Generate report after analyzing or fixing.
This should be called after Preflight.analyze or Preflight.analyzeAndFixup .
| [in] | preflight_report_setting_data | The preflight report setting data. |
| [in] | progress_callback | A ProgressCallback object which is implemented by user and can be used to get progress data. |
| boolean com.foxit.sdk.addon.compliance.Preflight.generateXMLReport | ( | String | xml_report_file_path, |
| ProgressCallback | progress_callback | ||
| ) | throws com.foxit.sdk.PDFException |
Generate an XML report after analyzing or fixing.
This should be called after Preflight.analyze or Preflight.analyzeAndFixup .
| [in] | xml_report_file_path | A complete path for saving the XML report file. This should not be an empty string. |
| [in] | progress_callback | A ProgressCallback object which is implemented by user and can be used to get progress data. This can be null. Default value: null. |
| String com.foxit.sdk.addon.compliance.Preflight.getGroupItemComment | ( | String | key | ) | throws com.foxit.sdk.PDFException |
Get the comment of the group item through the key.
Only English is available, and other languages need to reference the translated XML to get it by themselves.
| [in] | key | the key of group item. |
| String com.foxit.sdk.addon.compliance.Preflight.getGroupItemName | ( | String | key | ) | throws com.foxit.sdk.PDFException |
Get the name of the group item through the key.
Only English is available, and other languages need to reference the translated XML to get it by themselves.
| [in] | key | the key of group item. |
| java.util.ArrayList< java.lang.String > com.foxit.sdk.addon.compliance.Preflight.getGroupNamesArray | ( | int | library_type, |
| int | operate_type | ||
| ) | throws com.foxit.sdk.PDFException |
Get all group names array corresponding to the library type and operation type.
| [in] | library_type | The library type. Please refer to values starting from com.foxit.sdk.addon.compliance.PreflightSettingData.e_LibraryTypeFoxit and this should be one of these values. |
| [in] | operate_type | The operate type. Please refer to values starting from com.foxit.sdk.addon.compliance.PreflightSettingData.e_OperateTypeProfiles and this should be one of these values. |
| java.util.ArrayList< java.lang.String > com.foxit.sdk.addon.compliance.Preflight.getItemKeysArray | ( | String | group_name | ) | throws com.foxit.sdk.PDFException |
Get item keys array with the specific group name.
| [in] | group_name | The group name which can obtain from the function Preflight.getGroupNamesArray . |
| boolean com.foxit.sdk.addon.compliance.Preflight.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| void com.foxit.sdk.addon.compliance.Preflight.setPreflightGroupLocalCallback | ( | PreflightGroupLocalCallback | callback | ) | throws com.foxit.sdk.PDFException |
Set a localized name and comment callback for preflight group items.
This callback is used by Preflight.getGroupItemName and Preflight.getGroupItemComment to provide localized names and comments for group items. When a localized string for a given key is available from the callback, it will be used; otherwise, the default library string will be used.
| [in] | callback | A PreflightGroupLocalCallback callback object that provides localized names and comments. |