1 #if (defined(_WIN32) || defined(_WIN64)) 91 static void SetLogFile(
const char* log_file_path);
104 static void SetLogFile(
const wchar_t* log_file_path);
240 OCR& operator = (
const OCR& other);
256 bool operator != (
const OCR& other)
const;
265 bool IsEmpty()
const;
279 void OCRPDFPage(
pdf::PDFPage pdf_page,
bool is_editable);
293 void OCRPDFDocument(
pdf::PDFDoc pdf_doc,
bool is_editable);
318 #endif // #if (defined(_WIN32) || defined(_WIN64)) Definition: fs_common.h:1179
CFX_Object Object
Object type.
Definition: fs_basictypes.h:217
bool is_editable
Whether the OCR result is editable. true means the OCR result is editable. false means the OCR result...
Definition: fs_ocr.h:202
Header file for PDF document related definitions and classes.
static void SetLogFile(const char *log_file_path)
Set log file for OCR engine.
OCRSettingData(pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable)
Constructor, with parameters.
Definition: fs_ocr.h:145
Definition: fs_pdfdoc.h:508
static ErrorCode Initialize(const wchar_t *ocr_resource_path)
Initialize OCR engine.
OCRSettingData()
Constructor.
Definition: fs_ocr.h:134
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
OCRSettingData & operator=(const OCRSettingData &data)
Assign operator.
Definition: fs_ocr.h:174
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:233
pdf::PDFDoc pdf_doc
A PDFDoc object that need to be OCR.
Definition: fs_ocr.h:195
Definition: fs_pdfpage.h:411
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
bool operator!=(const OCRSettingData &data)
Assign operator.
Definition: fs_ocr.h:188
Definition: fs_basictypes.h:407
Header file for PDF page related definitions and classes.
static void SetLanguages(const wchar_t *languages)
Set the name of languages which would be included in the language database for doing OCR.
Foxit namespace.
Definition: fs_taggedpdf.h:27
void Set(pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable)
Set value.
Definition: fs_ocr.h:161
common::Range page_range
The range of pages that need to be OCR.
Definition: fs_ocr.h:198
static void Release()
Release OCR engine.