Class UniquePropertiesValidation

java.lang.Object
org.apache.pdfbox.preflight.metadata.UniquePropertiesValidation

public class UniquePropertiesValidation extends Object
Class which checks that certain metadata properties are unique, see PDFBOX-4860.
Author:
Tilman Hausherr
  • Constructor Details

    • UniquePropertiesValidation

      public UniquePropertiesValidation()
  • Method Details

    • validatePropertiesUniqueness

      public List<ValidationResult.ValidationError> validatePropertiesUniqueness(org.apache.pdfbox.pdmodel.PDDocument document, org.apache.xmpbox.XMPMetadata metadata) throws ValidationException
      Checks that certain metadata properties are unique.
      Parameters:
      document - the PDF Document
      metadata - the XMP MetaData
      Returns:
      List of validation errors
      Throws:
      ValidationException