@DoNotObfuscate
public final class OCRValidator
extends com.pdfunit.validators.AbstractPageValidator
Modifier | Constructor and Description |
---|---|
protected |
OCRValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages,
Rotation rotation,
FlipDirection flipDirection,
ImageRegion imageRegion,
ImageValidator backreference) |
protected |
OCRValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages,
Rotation rotation,
FlipDirection flipDirection,
ImageValidator backreference) |
Modifier and Type | Method and Description |
---|---|
OCRValidator |
containing(java.lang.String expectedText)
This method verifies that an extracted text from an image contains the specified
text.
|
OCRValidator |
endingWith(java.lang.String endString)
This method verifies that an extracted text from an image ends with
the expected text.
|
OCRValidator |
equalsTo(java.lang.String expectedText)
This method verifies that an extracted text from a region of an image contains
the specified text.
|
java.util.Collection<com.pdfunit.internal.spi.IImage> |
getExtractedImages() |
FlipDirection |
getFlipDirection() |
ImageRegion |
getImageRegion() |
Rotation |
getRotation() |
OCRValidator |
matchingRegex(java.lang.String regex)
This method verifies that an extracted text from an image matches
the given regular expressiong.
|
OCRValidator |
startingWith(java.lang.String startString)
This method verifies that an extracted text from an image starts with
the expected text.
|
createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegion
protected OCRValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages, Rotation rotation, FlipDirection flipDirection, ImageValidator backreference)
protected OCRValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages, Rotation rotation, FlipDirection flipDirection, ImageRegion imageRegion, ImageValidator backreference)
@Guarded public OCRValidator containing(java.lang.String expectedText)
@Guarded public OCRValidator endingWith(java.lang.String endString)
public java.util.Collection<com.pdfunit.internal.spi.IImage> getExtractedImages()
public ImageRegion getImageRegion()
public FlipDirection getFlipDirection()
public Rotation getRotation()
@Guarded public OCRValidator equalsTo(java.lang.String expectedText)
@Guarded public OCRValidator matchingRegex(java.lang.String regex)
@Guarded public OCRValidator startingWith(java.lang.String startString)
Copyright (C) PDFUnit.com. See here for license.