Foxit PDF SDK
foxit::addon::ocr::OCRSettingData Class Reference

Inherits Object.

Public Member Functions

 OCRSettingData ()
 Constructor.
 
 OCRSettingData (pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable)
 Constructor, with parameters. More...
 
bool operator!= (const OCRSettingData &data)
 Assign operator. More...
 
OCRSettingDataoperator= (const OCRSettingData &data)
 Assign operator. More...
 
void Set (pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable)
 Set value. More...
 

Public Attributes

bool is_editable
 Whether the OCR result is editable. true means the OCR result is editable. false means the OCR result can only be searched but not be edited.
 
common::Range page_range
 The range of pages that need to be OCR.
 
pdf::PDFDoc pdf_doc
 A PDFDoc object that need to be OCR.
 

Detailed Description

This class represents setting data used for OCR.

Constructor & Destructor Documentation

◆ OCRSettingData()

foxit::addon::ocr::OCRSettingData::OCRSettingData ( pdf::PDFDoc  pdf_doc,
const common::Range page_range,
bool  is_editable 
)
inline

Constructor, with parameters.

Parameters
[in]pdf_docA PDFDoc object.
[in]page_rangeThe range of pages that need to be OCR.
[in]is_editabletrue means the OCR result is editable. false means the OCR result can only be searched but not be edited.
Returns
None.

Member Function Documentation

◆ operator!=()

bool foxit::addon::ocr::OCRSettingData::operator!= ( const OCRSettingData data)
inline

Assign operator.

Parameters
[in]dataAnother OCRSettingData object, whose value would be assigned to current object.
Returns
return true or false.

◆ operator=()

OCRSettingData& foxit::addon::ocr::OCRSettingData::operator= ( const OCRSettingData data)
inline

Assign operator.

Parameters
[in]dataAnother OCRSettingData object, whose value would be assigned to current object.
Returns
Reference to current object itself.

◆ Set()

void foxit::addon::ocr::OCRSettingData::Set ( pdf::PDFDoc  pdf_doc,
const common::Range page_range,
bool  is_editable 
)
inline

Set value.

Parameters
[in]pdf_docA PDFDoc object.
[in]page_rangeThe range of pages that need to be OCR.
[in]is_editabletrue means the OCR result is editable. false means the OCR result can only be searched but not be edited.
Returns
None.