pdfOCR 2.0.2 API
iText.Pdfocr.IImageRotationHandler Interface Reference

Rotation information may be stored in image metadata. More...

Inheritance diagram for iText.Pdfocr.IImageRotationHandler:
iText.Pdfocr.Tesseract4.LeptonicaImageRotationHandler

Public Member Functions

ImageData  ApplyRotation (ImageData imageData)
  Apply rotation to image data. More...
 

Detailed Description

Rotation information may be stored in image metadata.

Rotation information may be stored in image metadata. For OCR and adding image to document that rotation should be applied to the image, so that it is actually rotated, not via metadata properties. Interface ia responsible for extracting rotation from metadata and applying in to the image.

Member Function Documentation

◆ ApplyRotation()

ImageData iText.Pdfocr.IImageRotationHandler.ApplyRotation ( ImageData  imageData )

Apply rotation to image data.

Apply rotation to image data. If image is not rotated - does nothing.

Parameters
imageData to apply rotation to
Returns
rotated image if rotation flag is set or self if no rotation

Implemented in iText.Pdfocr.Tesseract4.LeptonicaImageRotationHandler.