pdfOCR 1.0.1 API
iText.Pdfocr Namespace Reference

Classes

interface  IMetaInfoWrapper
 The meta info wrapper that holds some meta info More...
 
interface  IOcrEngine
 IOcrEngine interface is used for instantiating new OcrReader objects. More...
 
class  OcrEngineProperties
 
class  OcrException
 Exception class for custom exceptions. More...
 
class  OcrPdfCreator
 OcrPdfCreator is the class that creates PDF documents containing input images and text that was recognized using provided IOcrEngine. More...
 
class  OcrPdfCreatorMetaInfo
 The meta info that is used internally by pdfOcr to pass a wrapped custom meta data More...
 
class  OcrPdfCreatorProperties
 Properties that will be used by the OcrPdfCreator. More...
 
class  PdfCreatorUtil
 
class  PdfOcrFontProvider
 
class  PdfOcrLogMessageConstant
 
class  PdfOcrMetaInfo
 
class  TextInfo
 This class describes how recognized text is positioned on the image providing bbox for each text item (could be a line or a word). More...
 

Enumerations

enum  ScaleMode { ScaleMode.SCALE_WIDTH, ScaleMode.SCALE_HEIGHT, ScaleMode.SCALE_TO_FIT }
 Enumeration of the possible scale modes for input images. More...
 

Enumeration Type Documentation

◆ ScaleMode

Enumeration of the possible scale modes for input images.

Enumerator
SCALE_WIDTH 

Only width of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method.

Only width of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method. Height will be equal to the page height that was set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method and width will be proportionally scaled to keep the original aspect ratio.

SCALE_HEIGHT 

Only height of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method.

Only height of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method. Width will be equal to the page width that was set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method and height will be proportionally scaled to keep the original aspect ratio.

SCALE_TO_FIT 

The image will be scaled to fit within the page width and height dimensions that are set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method.

The image will be scaled to fit within the page width and height dimensions that are set using OcrPdfCreatorProperties.SetPageSize(Rectangle) method. Original aspect ratio of the image stays unchanged.