ComPDFKit Conversion C++ SDK 3.0.0
API Documentation
com_config_macros.h
Go to the documentation of this file.
1#ifndef COM_CONFIG_MACROS_H_
2#define COM_CONFIG_MACROS_H_
3
4#if defined(_WIN32)
5#define COMPDFKIT_DECL __declspec(dllexport)
6#else
7#define COMPDFKIT_DECL __attribute__((visibility("default")))
8#endif // _WIN32
9
10#if defined(_WIN32)
11#define COMPDFKIT_STRING const wchar_t*
12#else
13#define COMPDFKIT_STRING const char*
14#endif // _WIN32
15
16#if defined(_MSC_VER)
17#define CSDK_COMPDFKIT_CALL __stdcall
18#else
19#define CSDK_COMPDFKIT_CALL
20#endif
21
31typedef bool (*COMOCRCallback)(const char* image_path, bool enable_ocr);
32
41typedef void (*COMProgress)(int current_page, int total_page);
42
44typedef void* COMHANDLE;
45
46#endif // COM_CONFIG_MACROS_H_
bool(* COMOCRCallback)(const char *image_path, bool enable_ocr)
A callback function type for handling OCR operations on images.
Definition com_config_macros.h:31
void(* COMProgress)(int current_page, int total_page)
A callback function type for tracking the progress of a conversion process.
Definition com_config_macros.h:41
void * COMHANDLE
A generic handle type for managing various operations.
Definition com_config_macros.h:44