Package | Description |
---|---|
com.pdfunit |
This is the main package for testing PDF documents.
|
com.pdfunit.pagefilter |
Classes to filter individual pages from the entire document.
|
com.pdfunit.validators |
Classes implementing validations on specific topics of PDF.
|
Modifier and Type | Field and Description |
---|---|
static PagesToUse |
Constants.FIRST_PAGE
Instance providing page number 1 for a PDF document.
|
static PagesToUse |
Constants.LAST_PAGE
Instance providing the last page number of a PDF document.
|
static PagesToUse |
Constants.ON_ANY_PAGE
Instance providing the page numbers for every page of a PDF document
and signaling the validator class the first match.
|
static PagesToUse |
Constants.ON_EACH_PAGE
Instance providing the page numbers for each page of a PDF document.
|
static PagesToUse |
Constants.ON_EVEN_PAGES
Instance providing all even page numbers of a PDF document.
|
static PagesToUse |
Constants.ON_EVERY_PAGE
Instance providing the page numbers for every page of a PDF document.
|
static PagesToUse |
Constants.ON_FIRST_PAGE
Instance providing page number 1 for a PDF document.
|
static PagesToUse |
Constants.ON_LAST_PAGE
Instance providing the last page number of a PDF document.
|
static PagesToUse |
Constants.ON_ODD_PAGES
Instance providing all odd page numbers of a PDF document.
|
Modifier and Type | Class and Description |
---|---|
class |
AnyPageAfter
This class finds all pages after a given pagenumber of a PDF document.
|
class |
AnyPageBefore
This class finds all pages before a given pagenumber of a PDF document.
|
class |
EvenPages
This class collects all even pages of a PDF document.
|
class |
EveryPageAfter
This class finds all pages after a given pagenumber of a PDF document.
|
class |
EveryPageBefore
This class finds all pages before a given pagenumber of a PDF document.
|
class |
FirstPage
This class finds the first page of a PDF document.
|
class |
IndividualPages |
class |
LastPage
This class finds the last page of a PDF document.
|
class |
OddPages
This class collects all odd pages of a PDF document.
|
class |
OnAnyPage
This class collects every page of a PDF document.
|
class |
OnEveryPage
This class collects every page of a PDF document.
|
class |
PagesToUseFromTo |
Modifier and Type | Method and Description |
---|---|
static PagesToUse |
OnAnyPage.after(int lowestPageExclusive)
This method does what the name suggests.
|
static PagesToUse |
OnEveryPage.after(int lowestPageExclusive)
This method does what the name suggests.
|
static PagesToUse |
OnAnyPage.before(int highestPageExcluded)
This method does what the name suggests.
|
static PagesToUse |
OnEveryPage.before(int highestPageExcluded)
This method does what the name suggests.
|
static PagesToUse |
PagesToUse.getPage(int pageInclusive)
This method does what the name suggests.
|
static PagesToUse |
PagesToUse.getPages(int... pages)
Creating an instance providing pagenumbers for all pages of a PDF document
given by the parameters.
|
PagesToUse |
PagesToUseFromTo.to(int toPage) |
Modifier and Type | Method and Description |
---|---|
RenderedPageValidator |
DocumentValidator.asRenderedPage(PagesToUse pagesToUse)
This method prepareds the validation of PDF pages as rendered images.
|
ImageValidator |
DocumentValidator.containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
ImageValidator |
ImageValidator.containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentImageValidator.containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentValidator.containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
ImageValidator |
DocumentValidator.containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page in effect.
|
ImageValidator |
ImageValidator.containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentImageValidator.containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentValidator.containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
ImageValidator |
DocumentValidator.containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
ImageValidator |
ImageValidator.containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentImageValidator.containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
This method verifies that every page in effect, defined by the second
parameter, contains the image, given by the first parameter.
|
MultiDocumentImageValidator |
MultiDocumentValidator.containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
This method verifies that the given image is present on every page, defined by
the second parameter.
|
protected boolean |
ImageValidator.containsImageOnPages(java.awt.image.BufferedImage expectedImage,
PagesToUse pagesToUse) |
ImageValidator |
DocumentValidator.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.
|
ImageValidator |
ImageValidator.containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages,
PagesToUse pagesToUse)
This method verifies that on of the given images can be found on the defined pages.
|
void |
MultiDocumentImageValidator.containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages,
PagesToUse pagesToUse)
This method verifies that on of the given images can be found on the defined pages.
|
void |
MultiDocumentValidator.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.
|
TextValidator |
DocumentValidator.hasContent(PagesToUse pagesToUse)
Deprecated.
Use hasText(PagesToUse) instead.
The name of this method is not clear enough.
|
TextValidator |
TextValidator.hasContent(PagesToUse pagesToUse)
Deprecated.
Use hasText(PagesToUse) instead.
The name of this method is not clear enough.
|
TextValidator |
DocumentValidator.hasContent(PagesToUse pagesToUse,
ClippingArea clippingArea)
Deprecated.
Use hasText(PagesToUse, ClippingArea) instead.
The name of this method is not clear enough.
|
FormatValidator |
DocumentValidator.hasFormat(DocumentFormat expectedFormat,
PagesToUse pagesToUse)
This method verifies the format against that pages, given by the
second parameter.
|
FormatValidator |
FormatValidator.hasFormat(DocumentFormat expectedFormat,
PagesToUse pagesToUse)
This method verifies that the format of all pages in effect are equal
to the expected format, given by the first parameter.
|
MultiDocumentFormatValidator |
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.
|
MultiDocumentFormatValidator |
MultiDocumentValidator.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.
|
boolean |
DocumentValidator.hasNoText(PagesToUse pagesToUse) |
boolean |
MultiDocumentValidator.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 |
DocumentValidator.hasNoText(PagesToUse pagesToUse,
ClippingArea clippingArea) |
boolean |
MultiDocumentValidator.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.
|
DocumentValidator |
DocumentValidator.hasNumberOfVisibleImages(int expectedNumber,
PagesToUse pagesToUse)
This method calculates the number of visible images on the pages,
given by the second parameter, and compares it with the expected sum,
given by the first parameter.
|
TextValidator |
DocumentValidator.hasText(PagesToUse pagesToUse)
This method prepares the validation of text for every page in effect,
defined by the first parameter.
|
MultiDocumentTextValidator |
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 |
MultiDocumentValidator.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.
|
TextValidator |
TextValidator.hasText(PagesToUse pagesToUse)
Preparing validator for following methods.
|
TextValidator |
DocumentValidator.hasText(PagesToUse pagesToUse,
ClippingArea clippingArea)
This method prepares the validation of text for every page in effect, defined
by the first parameter, reduced to a section of every page, defined by the second parameter.
|
MultiDocumentTextValidator |
MultiDocumentTextValidator.hasText(PagesToUse pagesToUse,
ClippingArea clippingArea)
This method checks that each document of the given set of PDF documents
contains text in the area and pages that are defined by the parameters.
|
MultiDocumentTextValidator |
MultiDocumentValidator.hasText(PagesToUse pagesToUse,
ClippingArea inClippingArea) |
CompareValidator |
CompareValidator.haveSameAppearance(PagesToUse pagesToUse)
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.
|
CompareValidator |
CompareValidator.haveSameAppearance(PagesToUse pagesToUse,
ClippingArea clippingArea)
This method renders areas from each specified page of a test PDF document
and compares it as an image to the same area of a master PDF.
|
CompareValidator |
CompareValidator.haveSameContent(PagesToUse pagesToUse)
Deprecated.
Unprecise name. Use haveSameText(PagesToUse) instead.
|
CompareValidator |
CompareValidator.haveSameContent(PagesToUse pagesToUse,
ClippingArea clippingArea)
Deprecated.
Unprecise name. Use haveSameText(PagesToUse, ClippingArea) instead.
|
CompareValidator |
CompareValidator.haveSameContent(PagesToUse pagesToUse,
ClippingArea clippingArea,
WhitespaceProcessing whitespaceProcessing)
Deprecated.
Unprecise name. Use haveSameText(PagesToUse, ClippingArea, WhitespaceProcessing) instead.
|
CompareValidator |
CompareValidator.haveSameContent(PagesToUse pagesToUse,
WhitespaceProcessing whitespaceProcessing)
Deprecated.
Unprecise name. Use haveSameText(PagesToUse, WhitespaceProcessing) instead.
|
CompareValidator |
CompareValidator.haveSameFormat(PagesToUse pagesToUse)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameImages(PagesToUse pagesToUse)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameNumberOfImages(PagesToUse pagesToUse)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameText(PagesToUse pagesToUse)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameText(PagesToUse pagesToUse,
ClippingArea clippingArea)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameText(PagesToUse pagesToUse,
ClippingArea clippingArea,
WhitespaceProcessing whitespaceProcessing)
This method does what the name suggests.
|
CompareValidator |
CompareValidator.haveSameText(PagesToUse pagesToUse,
WhitespaceProcessing whitespaceProcessing)
This method does what the name suggests.
|
void |
TextValidator.setPagesToUse(PagesToUse pagesToUse) |
Constructor and Description |
---|
EmptyPageValidator(com.pdfunit.internal.spi.IDocument testDocument,
PagesToUse pagesToUse) |
EmptyPageValidator(com.pdfunit.internal.spi.IDocument testDocument,
PagesToUse pagesToUse,
ClippingArea clippingArea) |
MultiDocumentEmptyPageValidator(java.util.Vector<DocumentValidator> documentValidators,
PagesToUse pagesToUse) |
MultiDocumentEmptyPageValidator(java.util.Vector<DocumentValidator> documentValidators,
PagesToUse pagesToUse,
ClippingArea clippingArea) |
Copyright (C) PDFUnit.com. See here for license.