![]() | OcrPdfRenderer Class |
Namespace: Patagames.Ocr
The OcrPdfRenderer type exposes the following members.
Name | Description | |
---|---|---|
![]() | Extension |
Gets renderer extension
(Inherited from OcrResultRenderer.) |
![]() | Handle |
Handle to internal tesseract renderer
(Inherited from OcrResultRenderer.) |
![]() | ImageCount |
Gets the index of the last image given to AddImage
(i.e. images are incremented whether the image succeeded or not)
(Inherited from OcrResultRenderer.) |
![]() | Title |
Gets document title
(Inherited from OcrResultRenderer.) |
Name | Description | |
---|---|---|
![]() | AddImage |
Adds the recognized text from the source image to the current document.
Invalid if BeginDocument not yet called.
(Inherited from OcrResultRenderer.) |
![]() | BeginDocument |
Starts a new document with the given title. This clears the contents of the output data.
(Inherited from OcrResultRenderer.) |
![]() ![]() | Create |
Create new instance of OcrPdfRenderer class.
|
![]() | Dispose |
Releases all resources used by this OcrResultRenderer
(Inherited from OcrResultRenderer.) |
![]() | EndDocument |
Finishes the document and finalizes the output data. Invalid if BeginDocument(String) not yet called.
(Inherited from OcrResultRenderer.) |
![]() | Insert |
Insert renderer
(Inherited from OcrResultRenderer.) |
![]() | Next |
Get next rendeder.
(Inherited from OcrResultRenderer.) |
For simplicity implementing this with tesesract version 3.01, the renderer contains document state that is cleared from document to document just as the TessBaseAPI is. This way the base API can just delegate its rendering functionality to injected renderers, and the renderers can manage the associated state needed for the specific formats in addition to the heuristics for producing it.