1 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__) 92 static void SetLogFile(
const char* log_file_path);
105 static void SetLogFile(
const wchar_t* log_file_path);
260 OCR& operator = (
const OCR& other);
276 bool operator != (
const OCR& other)
const;
285 bool IsEmpty()
const;
299 void OCRPDFPage(
pdf::PDFPage pdf_page,
bool is_editable);
313 void OCRPDFDocument(
pdf::PDFDoc pdf_doc,
bool is_editable);
314 #if defined(_WIN32) || defined(_WIN64) 352 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__) Definition: fs_common.h:1189
CFX_Object Object
Object type.
Definition: fs_basictypes.h:217
bool is_editable
Decide whether the OCR result is editable. true means the OCR result is editable. false means the OCR...
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.
WIDE STRING CLASS.
Definition: fx_string.h:1452
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:613
static ErrorCode Initialize(const wchar_t *ocr_resource_path)
Initialize OCR engine.
OCRSettingData()
Constructor.
Definition: fs_ocr.h:135
WString suspect_words
Suspicious words after OCR recognition.
Definition: fs_ocr.h:222
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
foxit::RectF words_rect
The box rectangle, in PDF coordinate system for suspicious words.
Definition: fs_ocr.h:219
pdf::PDFDoc pdf_doc
A valid PDF document 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
int page_index
The index of page.
Definition: fs_ocr.h:216
Header file for common definitions and classes.
bool operator!=(const OCRSettingData &data)
Assign operator.
Definition: fs_ocr.h:188
Definition: fs_basictypes.h:419
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.
Definition: fx_coordinates.h:771