pdfOCR 2.0.2 API
iText.Pdfocr Namespace Reference

Classes

class   AbstractPdfOcrEventHelper
  Helper class for working with events. More...
 
interface   IImageRotationHandler
  Rotation information may be stored in image metadata. More...
 
interface   IOcrEngine
  IOcrEngine interface is used for instantiating new OcrReader objects. More...
 
interface   IProductAware
  The interface that holds information about product data and meta info. More...
 
class   OcrEngineProperties
  This class contains additional properties for ocr engine. More...
 
class   OcrPdfCreator
  OcrPdfCreator is the class that creates PDF documents containing input images and text that was recognized using provided IOcrEngine. More...
 
class   OcrPdfCreatorEventHelper
 
class   OcrPdfCreatorProperties
  Properties that will be used by the OcrPdfCreator. More...
 
class   OcrProcessContext
  Class for storing ocr processing context. More...
 
class   PdfCreatorUtil
 
class   PdfOcrFontProvider
  iText.Layout.Font.FontProvider extension for ocr engine. More...
 
class   PdfOcrMetaInfoContainer
  Container to keep meta info. More...
 
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.