Class LeptonicaImageRotationHandler

java.lang.Object
com.itextpdf.pdfocr.tesseract4.LeptonicaImageRotationHandler
All Implemented Interfaces:
IImageRotationHandler

public class LeptonicaImageRotationHandler extends Object implements IImageRotationHandler
Leptonica based implementation of IImageRotationHandler.
  • Constructor Details

    • LeptonicaImageRotationHandler

      public LeptonicaImageRotationHandler()
  • Method Details

    • applyRotation

      public com.itextpdf.io.image.ImageData applyRotation (com.itextpdf.io.image.ImageData imageData)
      Description copied from interface: IImageRotationHandler
      Apply rotation to image data. If image is not rotated - does nothing.
      Specified by:
      applyRotation in interface IImageRotationHandler
      Parameters:
      imageData - to apply rotation to
      Returns:
      rotated image if rotation flag is set or self if no rotation