Package com.itextpdf.pdfocr
Interface IImageRotationHandler
- All Known Implementing Classes:
-
LeptonicaImageRotationHandler
public interface IImageRotationHandler
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.
-
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.io.image.ImageData
applyRotation
(com.itextpdf.io.image.ImageData imageData) Apply rotation to image data.
-
Method Details
-
applyRotation
com.itextpdf.io.image.ImageData applyRotation(com.itextpdf.io.image.ImageData imageData) 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
-