PDFix SDK  6.20.0
Loading...
Searching...
No Matches
OcrTesseract Struct Referenceabstract

OcrTesseract class. More...

#include <ocr_tesseract.h>

Inheritance diagram for OcrTesseract:
PdfixPlugin

Public Member Functions

virtual bool SetLanguage (const wchar_t *lang)=0
 Specify language used for OCR. More...
 
virtual bool SetDataPath (const wchar_t *path)=0
 
virtual bool SetEngine (OcrTesseractEngineType engine)=0
 
virtual TesseractDocOpenOcrDoc (PdfDoc *pdDoc)=0
 
- Public Member Functions inherited from PdfixPlugin
virtual void Destroy ()=0
 Destroys Pdfix plugin resources. More...
 
virtual bool Initialize (Pdfix *pdfix)=0
 Authorizes Pdfix. More...
 
virtual int GetVersionMajor () const =0
 
virtual int GetVersionMinor () const =0
 
virtual int GetVersionPatch () const =0
 
virtual int GetPdfixVersionMajor ()=0
 Returns the major version of the Pdfix SDK with which the plugin was built. More...
 
virtual int GetPdfixVersionMinor ()=0
 
virtual int GetPdfixVersionPatch ()=0
 
virtual PdfixGetPdfix ()=0
 

Detailed Description

OcrTesseract class.

OcrTesseract plugin main class.

Member Function Documentation

◆ OpenOcrDoc()

virtual TesseractDoc * OcrTesseract::OpenOcrDoc ( PdfDoc pdDoc)
pure virtual

Creates a new OCR process for PdfDoc. NOTE: You must call OcrTesseractDoc::Close once for every successful open.

Parameters
pdDocPdfDoc to process.
Returns
The newly created TesseractDoc or null.
See also
TesseractDoc::Close
OcrWithTesseract

◆ SetDataPath()

virtual bool OcrTesseract::SetDataPath ( const wchar_t *  path)
pure virtual

Specify the location of tessdata path. Please download from https://github.com/tesseract-ocr/tessdata

param path Absolute file path where the tessdata data are located.

Returns
true if data path was set succsessfully, false otherwise.

◆ SetEngine()

virtual bool OcrTesseract::SetEngine ( OcrTesseractEngineType  engine)
pure virtual

Specify the location of tessdata path. Please download from https://github.com/tesseract-ocr/tessdata

param path Absolute file path where the tessdata data are located.

Returns
true if data path was set succsessfully, false otherwise.

◆ SetLanguage()

virtual bool OcrTesseract::SetLanguage ( const wchar_t *  lang)
pure virtual

Specify language used for OCR.

Parameters
langDefault OCR language.
Returns
true if language was set succsessfully, false otherwise.