@DoNotObfuscate
public final class RenderedPageValidator
extends com.pdfunit.validators.AbstractPageValidator
Modifier | Constructor and Description |
---|---|
protected |
RenderedPageValidator(DocumentValidator documentValidator) |
protected |
RenderedPageValidator(PageValidator pageValidator) |
Modifier and Type | Method and Description |
---|---|
RenderedPageValidator |
isEqualToImage(java.awt.image.BufferedImage renderedImage)
This method compares an image of a page with a defined page of the current PDF.
|
RenderedPageValidator |
isEqualToImage(java.io.File imageFile)
This method compares an image of a page with a defined page of the current PDF.
|
RenderedPageValidator |
isEqualToImage(int leftX,
int upperY,
FormatUnit unit,
java.awt.image.BufferedImage expectedImage)
This method compares a rectangle of a page of the current PDF document to
the given image.
|
RenderedPageValidator |
isEqualToImage(int leftX,
int upperY,
FormatUnit unit,
java.io.File imageFile)
This method compares a rectangle of a page of the current PDF document to
the image, created from the file parameter.
|
RenderedPageValidator |
isEqualToImage(int leftX,
int upperY,
FormatUnit unit,
java.lang.String imageName)
This method compares a rectangle of a page of the current PDF document to
the image, created from the filename parameter.
|
RenderedPageValidator |
isEqualToImage(java.lang.String imageName)
This method compares an image of a page with a defined page of the current PDF.
|
RenderedPageValidator |
isEqualToImages(java.awt.image.BufferedImage... renderedImages)
This method compares images of a one or more pages with defined pages of the current PDF.
|
RenderedPageValidator |
isEqualToImages(java.io.File... referencedImageFiles)
This method compares images of a one or more pages with defined pages of the current PDF.
|
RenderedPageValidator |
isEqualToImages(int leftX,
int upperY,
FormatUnit unit,
java.awt.image.BufferedImage... renderedImages)
This method compares a rectangle of a page of the current PDF document to
the image that was passed with the second parameter.
|
RenderedPageValidator |
isEqualToImages(int leftX,
int upperY,
FormatUnit unit,
java.io.File... referencedImageFiles) |
RenderedPageValidator |
isEqualToImages(int leftX,
int upperY,
FormatUnit unit,
java.lang.String... renderedImageFilenames) |
RenderedPageValidator |
isEqualToImages(java.lang.String... renderedImageFilenames)
This method compares images of a one or more pages with defined pages of the current PDF.
|
createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegion
protected RenderedPageValidator(DocumentValidator documentValidator)
protected RenderedPageValidator(PageValidator pageValidator)
@Guarded public RenderedPageValidator isEqualToImage(java.awt.image.BufferedImage renderedImage)
isEqualToImages(BufferedImage...)
@Guarded public RenderedPageValidator isEqualToImages(java.awt.image.BufferedImage... renderedImages)
This method is functional the same as the method with the same name in singular, but it can compare multiple images to multiple pages.
isEqualToImage(BufferedImage)
@Guarded public RenderedPageValidator isEqualToImage(int leftX, int upperY, FormatUnit unit, java.awt.image.BufferedImage expectedImage)
The rectangle is given by the first and second parameter of this methods defining the upper left corner. Width and height are detected from the given image.
@Guarded public RenderedPageValidator isEqualToImages(int leftX, int upperY, FormatUnit unit, java.awt.image.BufferedImage... renderedImages)
The upper left point of the rectangle on the PDF page is defined by the first two parameters. Width and height are detected from the given image.
@Guarded public RenderedPageValidator isEqualToImage(java.io.File imageFile)
isEqualToImages(File...)
@Guarded public RenderedPageValidator isEqualToImages(java.io.File... referencedImageFiles)
This method is functional the same as the method with the same name in singular, but it can compare multiple images to multiple pages.
isEqualToImage(File)
@Guarded public RenderedPageValidator isEqualToImage(int leftX, int upperY, FormatUnit unit, java.io.File imageFile)
The rectangle is given by the first and second parameter of this methods defining the upper left corner. Width and height are detected from the given image.
@Guarded public RenderedPageValidator isEqualToImages(int leftX, int upperY, FormatUnit unit, java.io.File... referencedImageFiles)
@Guarded public RenderedPageValidator isEqualToImage(java.lang.String imageName)
isEqualToImages(String...)
@Guarded public RenderedPageValidator isEqualToImages(java.lang.String... renderedImageFilenames)
This method is functional the same as the method with the same name in singular, but it can compare multiple images to multiple pages.
isEqualToImage(String)
@Guarded public RenderedPageValidator isEqualToImage(int leftX, int upperY, FormatUnit unit, java.lang.String imageName)
The rectangle is given by the first and second parameter of this methods defining the upper left corner. Width and height are detected from the given image.
@Guarded public RenderedPageValidator isEqualToImages(int leftX, int upperY, FormatUnit unit, java.lang.String... renderedImageFilenames)
Copyright (C) PDFUnit.com. See here for license.