@DoNotObfuscate
public class MultiDocumentValidator
extends java.lang.Object
DocumentValidator
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Constructor and Description |
---|
MultiDocumentValidator(java.util.Vector<DocumentValidator> documentValidators)
This constructor is the entry to all tests belonging to a set of PDF documents.
|
Modifier and Type | Method and Description |
---|---|
MultiDocumentImageValidator |
containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
MultiDocumentImageValidator |
containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
MultiDocumentImageValidator |
containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
void |
containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages,
PagesToUse pagesToUse)
This method verifies that one of the given images is present on the pages that are
defined by the second parameter.
|
MultiDocumentAuthorValidator |
hasAuthor()
This method checks that each document of the given set of PDF documents
has an author.
|
MultiDocumentBookmarkDetailsValidator |
hasBookmark()
This method verifies that each given PDF document has one or more bookmarks.
|
MultiDocumentBookmarkValidator |
hasBookmarks()
This method verifies that each given PDF document has one ore more bookmarks.
|
MultiDocumentValidator |
hasEncryptionLength(int expectedEncryptionLength)
This method verifies that each document of the given set of
PDF documents is encrypted with the expected key length.
|
MultiDocumentSingleFieldValidator |
hasField(java.lang.String fieldname)
This method verifies that each document of the given set of
PDF documents has a field with the expected name.
|
MultiDocumentAllFieldsValidator |
hasFields()
This method checks that each given PDF has fields.
|
MultiDocumentFontNameValidator |
hasFont()
This method prepares the validation for one font in each given PDF document.
|
MultiDocumentFontValidator |
hasFonts()
This method verifies that each given PDF document has fonts.
|
MultiDocumentFormatValidator |
hasFormat(DocumentFormat expectedFormat)
This method checks that each document of the given set of PDF documents has
the expected page format.
|
MultiDocumentFormatValidator |
hasFormat(DocumentFormat expectedFormat,
PagesToUse pagesToUse)
This method checks that each document of the given set of PDF documents has
the expected page format on that pages that are defined by the second parameter.
|
MultiDocumentJavaScriptValidator |
hasJavaScript()
This method verifies that each given PDF document has embedded JavaScript.
|
MultiDocumentKeywordsValidator |
hasKeywords()
This method checks that each document of the given set of PDF documents
has a keywords.
|
MultiDocumentValidator |
hasLocale(java.util.Locale expectedLocale)
This method verifies that each document of the given set of
PDF documents has the expected locale.
|
MultiDocumentValidator |
hasLocale(java.lang.String expectedLocale)
This method verifies that each document of the given set of
PDF documents has the expected locale.
|
MultiDocumentValidator |
hasNoAuthor()
This method verifies that each document of the given set of
PDF documents does not have an author information.
|
MultiDocumentValidator |
hasNoKeywords()
This method verifies that each document of the given set of
PDF documents does not have keywords.
|
MultiDocumentValidator |
hasNoLocale()
This method verifies that each document of the given set of
PDF documents does not contain a locale.
|
MultiDocumentValidator |
hasNoProperty(java.lang.String key)
This method verifies that each document of the given set of
PDF documents does not have a property with the given key.
|
MultiDocumentValidator |
hasNoSubject()
This method verifies that each document of the given set of
PDF documents does not have a subject.
|
boolean |
hasNoText(PagesToUse pagesToUse)
This method checks, that each document of the given set of PDF documents
do not have text on the given pages.
|
boolean |
hasNoText(PagesToUse pagesToUse,
ClippingArea clippingArea)
This method checks, that each document of the given set of PDF documents
do not have text in the areas of that pages that are defined.
|
MultiDocumentValidator |
hasNoTitle()
This method verifies that each document of the given set of PDF documents does not have a title.
|
MultiDocumentValidator |
hasNoXFAData()
Validating that each document of the given set of PDF documents does not have XFA data.
|
MultiDocumentValidator |
hasNoXMPData()
Validating that each document of the given set of PDF documents does not have XMP data.
|
MultiDocumentValidator |
hasNumberOfBookmarks(int expectedNumber)
This method checks that each given PDF documents has the expected number
of bookmarks.
|
MultiDocumentValidator |
hasNumberOfFields(int expectedNumber)
This method verifies that each given PDF document has the expected number
of fields.
|
MultiDocumentValidator |
hasNumberOfFonts(int expectedNumber,
IdentifiedBy filter)
This method checks the number of fonts in each given PDF document.
|
MultiDocumentValidator |
hasNumberOfSignatures(int expectedNumber)
This method verifies that each document of the given set of
PDF documents has the expected number of signatures.
|
MultiDocumentValidator |
hasOwnerPassword(java.lang.String expectedPassword)
This method checks that each given PDF document can be opened with the
password given by the parameter.
|
MultiDocumentPermissionValidator |
hasPermission()
This method prepares the validation of permissions of the current PDF documents.
|
MultiDocumentPropertyValidator |
hasProperty(java.lang.String key)
This method checks that each document of the given set of PDF documents
has the expected key.
|
MultiDocumentSignatureValidator |
hasSignature(java.lang.String signatureName)
This method verifies that each document of the given set of PDF documents
has a signature with the given name.
|
MultiDocumentSignatureXMLValidator |
hasSignatures()
This method verifies that each document of the given set of
PDF documents has one ore more signatures.
|
MultiDocumentAllFieldsValidator |
hasSignedSignatureFields()
This method verifies that each document of the given set of
PDF documents has signed fields.
|
MultiDocumentSubjectValidator |
hasSubject()
This method checks that each document of the given set of PDF documents
has a subject.
|
MultiDocumentTextValidator |
hasText(PagesToUse pagesToUse)
This method checks that each document of the given set of PDF documents
contains text on the pages that are defined by the parameter.
|
MultiDocumentTextValidator |
hasText(PagesToUse pagesToUse,
ClippingArea inClippingArea) |
MultiDocumentPropertyValidator |
hasTitle()
This method checks that each document of the given set of PDF documents has a title.
|
MultiDocumentAllFieldsValidator |
hasUnsignedSignatureFields()
This method verifies that each document of the given set of
PDF documents has unsigned fields.
|
MultiDocumentValidator |
hasUserPassword(java.lang.String expectedPassword)
This method checks that each given PDF document can be opened with the
password given by the parameter.
|
MultiDocumentVersionValidator |
hasVersion()
This method checks that each documents of the given set of PDF documents
has a version.
|
MultiDocumentXFAValidator |
hasXFAData()
Validating that each document of the given set of PDF documents has XFA data.
|
MultiDocumentXMPValidator |
hasXMPData()
Validating that each document of the given set of PDF documents has XMP data.
|
MultiDocumentValidator |
isCertified()
This method verifies that each document of the given set of
PDF documents is certified.
|
MultiDocumentValidator |
isCertifiedFor(CertifiedFor expectedCertificationLevel)
This method verifies that each document of the given set of
PDF documents is certified for the expected level.
|
MultiDocumentValidator |
isLinearizedForFastWebView()
This method verifies that each document of the given set of
PDF documents is linearized.
|
MultiDocumentValidator |
isSigned()
This method verifies that each document of the given set of
PDF documents is signed.
|
MultiDocumentTaggingValidator |
isTagged() |
public MultiDocumentValidator(java.util.Vector<DocumentValidator> documentValidators)
@Guarded public MultiDocumentTextValidator hasText(PagesToUse pagesToUse)
@Guarded public MultiDocumentTextValidator hasText(PagesToUse pagesToUse, ClippingArea inClippingArea)
@Guarded public MultiDocumentValidator hasEncryptionLength(int expectedEncryptionLength)
@Guarded public MultiDocumentValidator hasNumberOfSignatures(int expectedNumber)
public MultiDocumentValidator isSigned()
@Guarded public MultiDocumentSignatureValidator hasSignature(java.lang.String signatureName)
@Guarded public MultiDocumentValidator hasLocale(java.lang.String expectedLocale)
@Guarded public MultiDocumentValidator hasLocale(java.util.Locale expectedLocale)
public MultiDocumentValidator hasNoLocale()
public MultiDocumentXFAValidator hasXFAData()
public MultiDocumentValidator hasNoXFAData()
public MultiDocumentXMPValidator hasXMPData()
public MultiDocumentValidator hasNoXMPData()
It makes sense to return void, because there are no data to analyze further.
public MultiDocumentAuthorValidator hasAuthor()
public MultiDocumentValidator hasNoAuthor()
public MultiDocumentPropertyValidator hasTitle()
public MultiDocumentValidator hasNoTitle()
public MultiDocumentSubjectValidator hasSubject()
public MultiDocumentValidator hasNoSubject()
public MultiDocumentKeywordsValidator hasKeywords()
public MultiDocumentValidator hasNoKeywords()
@Guarded public MultiDocumentPropertyValidator hasProperty(java.lang.String key)
@Guarded public MultiDocumentValidator hasNoProperty(java.lang.String key)
public MultiDocumentValidator isLinearizedForFastWebView()
public MultiDocumentTaggingValidator isTagged()
public MultiDocumentVersionValidator hasVersion()
@Guarded public MultiDocumentFormatValidator hasFormat(DocumentFormat expectedFormat)
@Guarded public MultiDocumentFormatValidator hasFormat(DocumentFormat expectedFormat, PagesToUse pagesToUse)
@Guarded public boolean hasNoText(PagesToUse pagesToUse)
An exceptions is thrown, when text was found.
@Guarded public boolean hasNoText(PagesToUse pagesToUse, ClippingArea clippingArea)
An exceptions is thrown, when text was found.
public MultiDocumentValidator isCertified()
@Guarded public MultiDocumentValidator isCertifiedFor(CertifiedFor expectedCertificationLevel)
public MultiDocumentSignatureXMLValidator hasSignatures()
public MultiDocumentAllFieldsValidator hasSignedSignatureFields()
public MultiDocumentAllFieldsValidator hasUnsignedSignatureFields()
@Guarded public MultiDocumentSingleFieldValidator hasField(java.lang.String fieldname)
public MultiDocumentAllFieldsValidator hasFields()
@Guarded public MultiDocumentValidator hasNumberOfFields(int expectedNumber)
@Guarded public MultiDocumentValidator hasUserPassword(java.lang.String expectedPassword)
@Guarded public MultiDocumentValidator hasOwnerPassword(java.lang.String expectedPassword)
public MultiDocumentPermissionValidator hasPermission()
public MultiDocumentBookmarkDetailsValidator hasBookmark()
public MultiDocumentBookmarkValidator hasBookmarks()
@Guarded public MultiDocumentValidator hasNumberOfBookmarks(int expectedNumber)
public MultiDocumentFontNameValidator hasFont()
public MultiDocumentFontValidator hasFonts()
@Guarded public MultiDocumentValidator hasNumberOfFonts(int expectedNumber, IdentifiedBy filter)
public MultiDocumentJavaScriptValidator hasJavaScript()
To check whether a JavaScript function belongs to an action, see
JavaScriptActionValidator
JavaScriptActionValidator
@Guarded public MultiDocumentImageValidator containsImage(java.lang.String imageFileName, PagesToUse pagesToUse)
@Guarded public MultiDocumentImageValidator containsImage(java.io.File imageFile, PagesToUse pagesToUse)
@Guarded public MultiDocumentImageValidator containsImage(java.io.InputStream imageStream, PagesToUse pagesToUse)
@Guarded public void containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages, PagesToUse pagesToUse)
Copyright (C) PDFUnit.com. See here for license.