com.pdfunit.validators

## Class FormatValidator

- java.lang.Object
- - com.pdfunit.validators.AbstractValidator
  - - com.pdfunit.validators.AbstractPageValidator
    - - com.pdfunit.validators.FormatValidator

-     @DoNotObfuscate
      public final class FormatValidator
      extends com.pdfunit.validators.AbstractPageValidator

  This class provides methods to validate page formats.
  Since:
    2016.05
  Author:
    Carsten Siedentop, February 2016

- - ### Field Summary

    - ### Fields inherited from class com.pdfunit.validators.AbstractPageValidator

      `effectedPageNumbers, pageScanFlag, pagesToUse, region`

    - ### Fields inherited from class com.pdfunit.validators.AbstractValidator

      `testDocument`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `FormatValidator(DocumentValidator documentValidator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `FormatValidator` | `hasFormat(DocumentFormat expectedFormat)` This method verifies that the format of all pages in effect are equal to the expected format, given by the first parameter.

    - ### Methods inherited from class com.pdfunit.validators.AbstractPageValidator

      `createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegion`

    - ### Methods inherited from class com.pdfunit.validators.AbstractValidator

      `closeDocument, equals, getDocument, hashCode`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FormatValidator

          protected FormatValidator(DocumentValidator documentValidator)

  - ### Method Detail

    - #### hasFormat

          @Guarded
          public FormatValidator hasFormat(DocumentFormat expectedFormat)

      This method verifies that the format of all pages in effect are equal to the expected format, given by the first parameter.

Copyright (C) PDFUnit.com. See here for license.