Go to the documentation of this file.
15 #ifndef FS_COMPLIANCEENGINE_H_
16 #define FS_COMPLIANCEENGINE_H_
33 namespace compliance {
56 typedef enum _ViewOrPrintCondition {
102 static ErrorCode Initialize(
const wchar_t* compliance_resource_folder_path,
const char* compliance_engine_unlockcode);
114 #if !defined(_MAC_JAVA_)
229 typedef enum _LibraryType {
243 typedef enum _OperateType {
339 typedef enum _ReportFileFormatType {
355 typedef enum _ProblemsHighlightMethod {
562 typedef enum _FixupState {
634 return !((*this) == other);
662 typedef enum _CheckSeverity {
737 return !((*this) == other);
848 #endif // FS_COMPLIANCEENGINE_H_
Preflight library type: Foxit.
Definition: fs_compliancecommon.h:231
Opearte type: profiles.
Definition: fs_compliancecommon.h:245
WString saved_pdf_path
A complete path for saving the PDF file generated by the preflight analysis and fixup process.
Definition: fs_compliancecommon.h:318
OperateType
Enumeration for the preflight operate type.
Definition: fs_compliancecommon.h:243
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
Info severity.
Definition: fs_compliancecommon.h:664
bool IsEmpty() const
Check whether current object is empty or not.
WString preflight_key
The preflight key. Retrieve available keys via Preflight::GetItemKeysArray.
Definition: fs_compliancecommon.h:305
PreflightSettingData(const wchar_t *preflight_key, OperateType operate_type, const wchar_t *src_pdf_path, const wchar_t *saved_pdf_path, int first_page_index, int last_page_index)
Constructor, with parameters.
Definition: fs_compliancecommon.h:277
CheckSeverity severity
The check severity of current hit data. Please refer to values starting from HitData::e_CheckSeverity...
Definition: fs_compliancecommon.h:746
Viewing or printing condition:Japan Color 2001 Coated.
Definition: fs_compliancecommon.h:64
Definition: fs_compliancecommon.h:332
FixupData(const FixupData &other)
Constructor, with another fixup data object.
Definition: fs_compliancecommon.h:582
Definition: fs_basictypes.h:229
CFX_Object Object
Object type.
Definition: fs_basictypes.h:220
PreflightSettingData & operator=(const PreflightSettingData &data)
Assign operator.
Definition: fs_compliancecommon.h:294
Report file format type: PDF.
Definition: fs_compliancecommon.h:341
HitData()
Constructor.
Definition: fs_compliancecommon.h:673
bool operator==(const Preflight &other) const
Equal operator.
void Analyze(const PreflightSettingData &preflight_setting_data, ProgressCallback *progress_callback=0)
Analyze a PDF file.
Preflight library type: Standards.
Definition: fs_compliancecommon.h:233
Header file for common definitions and classes.
bool operator==(const HitData &other) const
Equal operator.
Definition: fs_compliancecommon.h:715
Warning severity.
Definition: fs_compliancecommon.h:666
Report file format type: HTML.
Definition: fs_compliancecommon.h:347
Opearte type: single fixups.
Definition: fs_compliancecommon.h:249
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:236
bool operator!=(const HitData &other) const
Not equal operator.
Definition: fs_compliancecommon.h:736
Problems highlighted by layers.
Definition: fs_compliancecommon.h:359
Report file format type: TXT & TEXT.
Definition: fs_compliancecommon.h:345
int last_page_index
Index of the last page to be analyzed or fixed. If this is -1, that means all the pages of the source...
Definition: fs_compliancecommon.h:328
bool operator==(const FixupData &other) const
Equal operator.
Definition: fs_compliancecommon.h:612
uint32 triggered_count
Represents the count of hit operation for current data has been triggered during document verificatio...
Definition: fs_compliancecommon.h:741
static void SetLanguage(const char *language)
Set language for compliance engine.
WString report_file_path
A complete path for the report file. This should not be an empty string.
Definition: fs_compliancecommon.h:431
int page_index
Page index, starting from 0. -1 means current hit data was hit in document level.
Definition: fs_compliancecommon.h:754
WString name
Fixup rule name.
Definition: fs_compliancecommon.h:645
FixupData & operator=(const FixupData &other)
Assign operator.
Definition: fs_compliancecommon.h:596
Definition: fs_compliancecommon.h:655
void AnalyzeAndFixup(const PreflightSettingData &preflight_setting_data, ProgressCallback *progress_callback=0)
Analyze and fixup a PDF file.
Error severity.
Definition: fs_compliancecommon.h:668
StringArray GetItemKeysArray(const String &group_name)
Get item keys array with the specific group name.
WStringArray trigger_values
Array of trigger values. The count of triggered values is no more then triggered_count.
Definition: fs_compliancecommon.h:752
WString src_pdf_path
A complete path of source PDF file to be analyze and fix.
Definition: fs_compliancecommon.h:315
static ErrorCode InitializeThreadContext()
Initialize compliance context for a new thread.
Problems highlighted by transparent masks.
Definition: fs_compliancecommon.h:357
uint32 used_count
Represents the count of fixup operation invocations for current data during the conversion.
Definition: fs_compliancecommon.h:638
HitData & operator=(const HitData &other)
Assign operator.
Definition: fs_compliancecommon.h:698
Definition: fs_compliancecommon.h:222
static ErrorCode Initialize(const wchar_t *compliance_resource_folder_path, const char *compliance_engine_unlockcode)
Initialize compliance engine.
Viewing or printing condition:ISO Coated v2 (ECI).
Definition: fs_compliancecommon.h:62
ReportFileFormatType report_file_format_type
The report file format type. Please refer to values starting from PreflightReportSettingData::e_Repor...
Definition: fs_compliancecommon.h:415
BYTE STRING CLASS.
Definition: fx_string.h:317
FixupState state
Fixup state. Please refer to values starting from FixupData::e_FixupStateSuccess and this should be o...
Definition: fs_compliancecommon.h:643
WStringArray reasons
Fixup reasons. This may be an empty array. The count of reasons will not exceed used_times.
Definition: fs_compliancecommon.h:649
Viewing or printing condition: Auto.
Definition: fs_compliancecommon.h:58
A fixup was not required.
Definition: fs_compliancecommon.h:568
PreflightReportSettingData()
Constructor.
Definition: fs_compliancecommon.h:364
Opearte type: single checks.
Definition: fs_compliancecommon.h:247
size_t GetSize() const
Get the size of elements in current array.
bool CanFixup(const String &item_key)
Check whether the item key can be fixuped or not.
ViewOrPrintCondition
Enumeration for viewing or printing condition.
Definition: fs_compliancecommon.h:56
FixupState
Enumeration for the state of a fixup data.
Definition: fs_compliancecommon.h:562
OperateType operate_type
The preflight operate type. Please refer to values starting from PreflightSettingData::e_OperateTypeP...
Definition: fs_compliancecommon.h:312
PreflightReportSettingData & operator=(const PreflightReportSettingData &data)
Assign operator.
Definition: fs_compliancecommon.h:402
Foxit namespace.
Definition: fs_taggedpdf.h:27
HitData(const HitData &other)
Constructor, with another hit data object.
Definition: fs_compliancecommon.h:683
static void EnableHandleTransparency(bool enable_handle_transparency)
Set a flag to decide whether to enable transparency handling.
CheckSeverity
Enumeration for check severity of a hit data.
Definition: fs_compliancecommon.h:662
Viewing or printing condition: PSO Coated v3 (ECI).
Definition: fs_compliancecommon.h:66
ProblemsHighlightMethod problems_highlight_method
The method highlight problems. Only effective when to_highlight_problems is true and report_file_form...
Definition: fs_compliancecommon.h:428
PreflightSettingData()
Constructor.
Definition: fs_compliancecommon.h:254
bool to_highlight_problems
Whether to highlight problems or not. true menas to highlight problems, false means not.
Definition: fs_compliancecommon.h:421
WString comment
Hit rule comment to explain more details about the rule.
Definition: fs_compliancecommon.h:750
Definition: fs_compliancecommon.h:437
StringArray GetGroupNamesArray(const PreflightSettingData::LibraryType &library_type, const PreflightSettingData::OperateType &operate_type)
Get all group names array corresponding to the library type and operation type.
bool operator!=(const Preflight &other) const
Not equal operator.
static void Release()
Release compliance engine.
#define NULL
The null-pointer value.
Definition: fx_system.h:792
int first_page_index
Index of the first page to be analyzed or fixed, staring from 0. Default value: 0.
Definition: fs_compliancecommon.h:321
virtual void Release()=0
A callback function used to release current callback object itself.
A fixup succeeded.
Definition: fs_compliancecommon.h:564
static void SetTempFolderPath(const wchar_t *temp_folder_path)
Set the temporary folder for compliance engine.
Definition: fs_basictypes.h:227
LibraryType
Enumeration for the preflight library type.
Definition: fs_compliancecommon.h:229
bool GenerateReport(const PreflightReportSettingData &preflight_report_setting_data, ProgressCallback *progress_callback=0)
Generate report after analyzing or fixing.
bool to_generate_overview
Whether to generate overview or not. true menas to generate overview, false means not.
Definition: fs_compliancecommon.h:418
Definition: fs_compliancecommon.h:49
virtual void UpdateCurrentStateData(int current_rate, const WString ¤t_state_string)=0
A callback function used to update current progress state data to user in order that user can update ...
Definition: fs_compliancecommon.h:555
bool operator!=(const FixupData &other) const
Not equal operator.
Definition: fs_compliancecommon.h:633
Definition: fs_compliancecommon.h:198
Preflight library type: Prepress,Color and Transparency.
Definition: fs_compliancecommon.h:235
WIDE STRING CLASS.
Definition: fx_string.h:1461
FixupData()
Constructor.
Definition: fs_compliancecommon.h:573
Report file format type: XML.
Definition: fs_compliancecommon.h:343
PreflightReportSettingData(ReportFileFormatType report_file_format_type, bool to_generate_overview, bool to_highlight_problems, ProblemsHighlightMethod problem_highlight_method, const wchar_t *report_file_path)
Constructor, with parameters.
Definition: fs_compliancecommon.h:386
ReportFileFormatType
Enumeration for the preflight report file format type.
Definition: fs_compliancecommon.h:339
WString name
Hit rule name.
Definition: fs_compliancecommon.h:748
WString comment
Fixup rule comment to explain more details about the rule.
Definition: fs_compliancecommon.h:647
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
Preflight & operator=(const Preflight &other)
Assign operator.
Viewing or printing condition:Coated GRACoL 2006.
Definition: fs_compliancecommon.h:60
Definition: fs_basictypes.h:451
ProblemsHighlightMethod
Enumeration for the highlight method for preflight problems.
Definition: fs_compliancecommon.h:355
A fixup failed.
Definition: fs_compliancecommon.h:566
static void ReleaseThreadContext()
Release compliance context of the thread.
@2026 Foxit Software Incorporated. All rights reserved.