1#ifndef LIBRARY_MANAGER_H
2#define LIBRARY_MANAGER_H
46 static void SetLogger(
bool enable_info,
bool enable_warning);
63 static int GetPageCount(
const char* file_path,
const char* password);
69 static int GetPageCount(
const wchar_t* file_path,
const wchar_t* password);
93 LibraryManager() =
default;
94 LibraryManager(
const LibraryManager&) =
default;
static void Initialize(const char *resource_path)
Initializes the SDK library with the given resource path as a C-string.
static void Release()
Releases all resources used by the library. Should be called when the SDK is no longer needed.
static void SetLogger(bool enable_info, bool enable_warning)
Enables or disables logging for info and warning messages.
static base::ErrorCode LicenseVerify(const char *license, const char *device_id, const char *app_id)
Verifies the provided license key along with device ID and application ID.
static void SetProgress(COMProgress progress)
Sets a callback function to track the progress of SDK operations.
static void Initialize(const wchar_t *resource_path)
Initializes the SDK library with the given resource path as a wide-character string.
static void SetOCRResult(const char *json_str)
Sets OCR result data from a JSON string.
static base::ErrorCode SetDocumentAIModel(const wchar_t *file_path, base::OCRLanguage language)
Sets the Document AI model for OCR based on the provided file path and language.
static void GetVersion(char *version)
Gets the version of the SDK library.
static int GetPageCount(const wchar_t *file_path, const wchar_t *password)
Returns the number of pages in a document.
static int GetPageCount(const char *file_path, const char *password)
Returns the number of pages in a document.
static base::ErrorCode SetDocumentAIModel(const char *file_path, base::OCRLanguage language)
Sets the Document AI model for OCR based on the provided file path and language.
static void SetOCRLanguage(base::OCRLanguage language)
Sets the OCR language for document processing.
#define COMPDFKIT_DECL
Definition com_config_macros.h:7
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
ErrorCode
Error code.
Definition base_type.h:33
OCRLanguage
OCR language.
Definition base_type.h:10
Definition library_manager.h:8