Foxit PDF SDK
|
Inherits Object.
Static Public Member Functions | |
static ErrorCode | Initialize (const wchar_t *ocr_resource_path) |
Initialize OCR engine. More... | |
static void | Release () |
Release OCR engine. More... | |
static void | SetLanguages (const wchar_t *languages) |
Set the name of languages which would be included in the language database for doing OCR. More... | |
static void | SetLogFile (const char *log_file_path) |
Set log file for OCR engine. More... | |
static void | SetLogFile (const wchar_t *log_file_path) |
Set log file for OCR engine. More... | |
OCR add-on module can be used to convert text content of image to searchable text or editable text in a PDF page or a PDF document. Before using OCR module, user should first prepare OCR resource folder as described in "Foxit PDF SDK Developer Guide.pdf" document. Before initializing OCR engine and using any classes or methods in this module, please ensure Foxti PDF SDK has been initialized successfully by function common::Library::Initialize with a key including "OCR" module.
|
static |
Initialize OCR engine.
This should be called successfully before any other methods in OCR add-on module.
[in] | ocr_resource_path | File path of ocr resource folder. It should not be an empty string. Please refer to "Foxit PDF SDK Developer Guide.pdf" document for more details. |
|
static |
Release OCR engine.
This function can be called to release OCR engine when no need to use it any more before Foxit PDF SDK is released.
|
static |
Set the name of languages which would be included in the language database for doing OCR.
Current supported languages:
If no any language is set by this function, Foxit PDF SDK will use "English" by default.
[in] | languages | Language names. This should not be an empty string. This can contain one language name or several language names separated with commas. For example, "English" means English only, and "English,French" means English and French only. |
|
static |
Set log file for OCR engine.
This function is to set the log file for OCR engine, not for Foxit PDF SDK. If user wants to set log file for Foxit PDF SDK, please refer to function common::Library::SetLogFile.
[in] | log_file_path | A log file path. If this is an empty string, that means stop the log for OCR engine. |
|
static |
Set log file for OCR engine.
This function is to set the log file for OCR engine, not for Foxit PDF SDK. If user wants to set log file for Foxit PDF SDK, please refer to function common::Library::SetLogFile.
[in] | log_file_path | A log file path. If this is an empty string, that means stop the log for OCR engine. |