Class PdfUA1Checker

java.lang.Object
com.itextpdf.pdfua.checkers.PdfUAChecker
com.itextpdf.pdfua.checkers.PdfUA1Checker
All Implemented Interfaces:
IValidationChecker

public class PdfUA1Checker extends PdfUAChecker
The class defines the requirements of the PDF/UA-1 standard and contains method implementations from the abstract PdfUAChecker class.

The specification implemented by this class is ISO 14289-1.

  • Constructor Details

    • PdfUA1Checker

      public PdfUA1Checker (PdfDocument pdfDocument)
      Creates PdfUA1Checker instance with PDF document which will be validated against PDF/UA-1 standard.
      Parameters:
      pdfDocument - the document to validate
  • Method Details

    • validate

      public void validate (IValidationContext context)
      Validate the provided IValidationContext..
      Parameters:
      context - the IValidationContext to validate
    • isPdfObjectReadyToFlush

      public boolean isPdfObjectReadyToFlush (PdfObject object)
      Is PdfObject ready to flush..
      Parameters:
      object - the pdf object to check
      Returns:
      true if the object is ready to flush, false otherwise
    • checkFileSpec

      protected void checkFileSpec (PdfDictionary fileSpec)
      Verify the conformity of the file specification dictionary.
      Parameters:
      fileSpec - the PdfDictionary containing file specification to be checked
    • checkMetadata

      protected void checkMetadata (PdfCatalog catalog)
      Checks that the Catalog dictionary of a conforming file (the version number of a file may be any value from 1.0 to 1.7) contains the Metadata key whose value is a metadata stream. Also checks that the value of pdfuaid:part is 1 for conforming PDF files.

      Checks that the Metadata stream in the document catalog dictionary includes a dc:title entry reflecting the title of the document.

      Parameters:
      catalog - PdfCatalog document catalog dictionary