@DoNotObfuscate
public final class PageValidator
extends com.pdfunit.validators.AbstractPageValidator
This validator provides all 'first' methods of the fluent API. The methods mostly return instances of other validators
| Modifier | Constructor and Description | 
|---|---|
protected  | 
PageValidator(DocumentValidator documentValidator)  | 
| Modifier and Type | Method and Description | 
|---|---|
RenderedPageValidator | 
asRenderedPage()
This method prepares the validation of PDF pages as rendered images. 
 | 
void | 
containsImage(java.awt.image.BufferedImage expectedImage)  | 
void | 
containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages)  | 
SingleFieldValidator | 
hasField(java.lang.String fieldName)
This method does what the name suggests. 
 | 
void | 
hasFields(java.lang.String... fieldNames)  | 
PageValidator | 
hasFormat(DocumentFormat expectedFormat)
This method verifies the format against every page of a document. 
 | 
ImageValidator | 
hasImage()
This method checks that images exist on every effected pages. 
 | 
DocumentValidator | 
hasNoImage()  | 
DocumentValidator | 
hasNoText()  | 
PageValidator | 
hasNumberOfDifferentImages(int expectedNumber)
This method compares the number of different images of a PDF document
 with the number, given by the parameter. 
 | 
PageValidator | 
hasNumberOfVisibleImages(int expectedNumber)
This method checks the number of visible images of a PDF document
 with the expected sum, given by the parameter. 
 | 
SignatureFieldValidator | 
hasSignatureField(java.lang.String fieldName)
This method checks that a signature field with the given name exists. 
 | 
AllSignaturesValidator | 
hasSignatureFields()
This method verifies that a document has at least one signature field
 and prepares all signature fields for further checks. 
 | 
TextValidator | 
hasText()
This method prepares the validation of text for the previously defined pages and regions. 
 | 
DocumentValidator | 
isSignedBy(java.lang.String expectedSignatory)  | 
PageValidator | 
restrictedTo(PageRegion region)
This method sets a region filter for the following validation process. 
 | 
createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegionprotected PageValidator(DocumentValidator documentValidator)
public RenderedPageValidator asRenderedPage()
@Guarded public void containsImage(java.awt.image.BufferedImage expectedImage)
@Guarded public void containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages)
@Guarded public SingleFieldValidator hasField(java.lang.String fieldName)
@Guarded public void hasFields(java.lang.String... fieldNames)
@Guarded public PageValidator hasFormat(DocumentFormat expectedFormat)
public ImageValidator hasImage()
public DocumentValidator hasNoText()
public DocumentValidator hasNoImage()
@Guarded public PageValidator hasNumberOfDifferentImages(int expectedNumber)
@Guarded public PageValidator hasNumberOfVisibleImages(int expectedNumber)
Images like logo's that appear on different pages of the document are counted multiple times.
@Guarded public SignatureFieldValidator hasSignatureField(java.lang.String fieldName)
public AllSignaturesValidator hasSignatureFields()
public TextValidator hasText()
@Guarded public DocumentValidator isSignedBy(java.lang.String expectedSignatory)
@Guarded public PageValidator restrictedTo(PageRegion region)
Copyright (C) PDFUnit.com. See here for license.