@DoNotObfuscate
public final class CompareDocumentValidator
extends com.pdfunit.validators.AbstractPageValidator
ComparePageValidator
if you want to compare
properties which are related to pages.ComparePageValidator
Modifier | Constructor and Description |
---|---|
protected |
CompareDocumentValidator(DocumentValidator documentValidatorTest,
DocumentValidator documentValidatorMaster) |
Modifier and Type | Method and Description |
---|---|
void |
closeDocument()
Close PDF document.
|
CompareDocumentValidator |
haveSameAccessPermission()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameAccessPermission(AccessPermission permissionToCompare)
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameAppearance()
This method renders each specified page of a test PDF document and compares
it as an image to the same area of a master PDF.
|
ComparePageValidator |
haveSameAppearance(PagesToUse pagesToUse)
Deprecated.
|
ComparePageValidator |
haveSameAppearance(PagesToUse pagesToUse,
PageRegion region)
Deprecated.
|
CompareDocumentValidator |
haveSameAuthor()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameBookmarks()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameCreationDate()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameCreator()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameEmbeddedFiles(ComparedBy comparedBy)
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameFieldsByName()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameFieldsByValue()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameFormat()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameFormat(PagesToUse pagesToUse)
Deprecated.
|
CompareDocumentValidator |
haveSameImages()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameImages(PagesToUse pagesToUse)
Deprecated.
|
CompareDocumentValidator |
haveSameJavaScript()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameKeywords()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameLanguageInfo()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameLayerNames()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameModificationDate()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNamedDestinations()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfBookmarks()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfEmbeddedFiles()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfFields()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfImages()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfImages(PagesToUse pagesToUse)
Deprecated.
|
CompareDocumentValidator |
haveSameNumberOfLayers()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfNamedDestinations()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfPages()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameNumberOfTaggingInfo()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameProducer()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameProperties()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameProperty(java.lang.String property)
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameSubject()
This method does what the name suggests.
|
CompareDocumentValidator |
haveSameTaggingInfo() |
ComparePageValidator |
haveSameText() |
ComparePageValidator |
haveSameText(PagesToUse pagesToUse)
Deprecated.
|
ComparePageValidator |
haveSameText(PagesToUse pagesToUse,
PageRegion region)
Deprecated.
|
ComparePageValidator |
haveSameText(PagesToUse pagesToUse,
PageRegion region,
WhitespaceProcessing whitespaceProcessing)
Deprecated.
|
ComparePageValidator |
haveSameText(PagesToUse pagesToUse,
WhitespaceProcessing whitespaceProcessing)
Deprecated.
|
CompareDocumentValidator |
haveSameTitle()
This method does what the name suggests.
|
CompareXFAValidator |
haveXFAData()
This method does what the name suggests.
|
CompareXMPValidator |
haveXMPData()
This method does what the name suggests.
|
ComparePageValidator |
restrictedTo(PagesToUse pagesToUse)
This method sets a page filter for the following validation process.
|
protected CompareDocumentValidator(DocumentValidator documentValidatorTest, DocumentValidator documentValidatorMaster)
public void closeDocument()
com.pdfunit.validators.AbstractValidator
closeDocument
in class com.pdfunit.validators.AbstractValidator
public CompareDocumentValidator haveSameAccessPermission()
@Guarded public CompareDocumentValidator haveSameAccessPermission(AccessPermission permissionToCompare)
public CompareDocumentValidator haveSameAppearance()
@Guarded @Deprecated public ComparePageValidator haveSameAppearance(PagesToUse pagesToUse)
Instead of AssertThat.document(filename1).and(filename2).haveSameAppearance(pagesToUse)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameAppearance()
.
@Deprecated @Guarded public ComparePageValidator haveSameAppearance(PagesToUse pagesToUse, PageRegion region)
Instead of AssertThat.document(filename1).and(filename2).haveSameAppearance(pagesToUse, region)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).restrictedTo(region).haveSameAppearance()
.
public CompareDocumentValidator haveSameAuthor()
public CompareDocumentValidator haveSameBookmarks()
public CompareDocumentValidator haveSameCreationDate()
public CompareDocumentValidator haveSameCreator()
public CompareDocumentValidator haveSameNamedDestinations()
@Guarded public CompareDocumentValidator haveSameEmbeddedFiles(ComparedBy comparedBy)
public CompareDocumentValidator haveSameFieldsByName()
public CompareDocumentValidator haveSameFieldsByValue()
public CompareDocumentValidator haveSameFormat()
@Deprecated @Guarded public CompareDocumentValidator haveSameFormat(PagesToUse pagesToUse)
Instead of AssertThat.document(filename1).and(filename2).haveSameFormat(pagesToUse)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameFormat()
.
public CompareDocumentValidator haveSameImages()
Instead of AssertThat.document(filename1).and(filename2).haveSameImages(pagesToUse)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameImages()
.
@Deprecated @Guarded public CompareDocumentValidator haveSameImages(PagesToUse pagesToUse)
public CompareDocumentValidator haveSameJavaScript()
public CompareDocumentValidator haveSameKeywords()
public CompareDocumentValidator haveSameLanguageInfo()
public CompareDocumentValidator haveSameLayerNames()
public CompareDocumentValidator haveSameModificationDate()
public CompareDocumentValidator haveSameNumberOfBookmarks()
public CompareDocumentValidator haveSameNumberOfEmbeddedFiles()
public CompareDocumentValidator haveSameNumberOfFields()
public CompareDocumentValidator haveSameNumberOfImages()
@Deprecated @Guarded public CompareDocumentValidator haveSameNumberOfImages(PagesToUse pagesToUse)
Instead of AssertThat.document(filename1).and(filename2).haveSameNumberOfImages(pagesToUse)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameNumberOfImages()
.
public CompareDocumentValidator haveSameNumberOfLayers()
public CompareDocumentValidator haveSameNumberOfNamedDestinations()
public CompareDocumentValidator haveSameNumberOfPages()
public CompareDocumentValidator haveSameNumberOfTaggingInfo()
public CompareDocumentValidator haveSameProducer()
public CompareDocumentValidator haveSameProperties()
@Guarded public CompareDocumentValidator haveSameProperty(java.lang.String property)
public CompareDocumentValidator haveSameSubject()
public CompareDocumentValidator haveSameTaggingInfo()
public ComparePageValidator haveSameText()
@Deprecated @Guarded public ComparePageValidator haveSameText(PagesToUse pagesToUse)
Instead of AssertThat.document(filename1).and(filename2).haveSameText(pagesToUse)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameText()
.
@Deprecated @Guarded public ComparePageValidator haveSameText(PagesToUse pagesToUse, WhitespaceProcessing whitespaceProcessing)
Instead of AssertThat.document(filename1).and(filename2).haveSameText(pagesToUse, whitespaceProcessing)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).haveSameText(whitespaceProcessing)
.
@Deprecated @Guarded public ComparePageValidator haveSameText(PagesToUse pagesToUse, PageRegion region)
Instead of AssertThat.document(filename1).and(filename2).haveSameText(pagesToUse, region)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).restrictedTo(region).haveSameText()
.
@Deprecated @Guarded public ComparePageValidator haveSameText(PagesToUse pagesToUse, PageRegion region, WhitespaceProcessing whitespaceProcessing)
Instead of AssertThat.document(filename1).and(filename2).haveSameText(pagesToUse, region, whitespaceProcessing)
use AssertThat.document(filename1).and(filename2).restrictedTo(pagesToUse).restrictedTo(region).haveSameText(whitespaceProcessing)
.
public CompareDocumentValidator haveSameTitle()
public CompareXFAValidator haveXFAData()
public CompareXMPValidator haveXMPData()
@Guarded public ComparePageValidator restrictedTo(PagesToUse pagesToUse)
Copyright (C) PDFUnit.com. See here for license.