Interface Metadata

All Known Implementing Classes:
MetadataImpl

public interface Metadata
Current interface provide necessary behavior of pdf metadata for MetadataFixerImpl
Author:
Evgeniy Muravitskiy
  • Method Details

    • checkMetadataStream

      void checkMetadataStream(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
      Add required fields to stream dictionary and add FlateDecode Filter for part 2 and 3 flavours or remove filters for part 1 flavour
      Parameters:
      resultBuilder - report applied changes
    • removePDFIdentificationSchema

      void removePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
      Remove identification schema if MetadataFixerImpl can not repair document to valid PDF/A Document.
      Parameters:
      resultBuilder - report applied changes
    • addPDFIdentificationSchema

      void addPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
      Add PDF/A identification schema if MetadataFixerImpl be able to repair document to valid PDF/A document.
      Parameters:
      resultBuilder - report applied changes
      flavour - the checked flavour
    • getDublinCoreSchema

      DublinCore getDublinCoreSchema(InfoDictionary info)
      Get DublinCore representation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.
      Parameters:
      info - information dictionary representation of current document
      Returns:
      DublinCore schema or null
    • getAdobePDFSchema

      AdobePDF getAdobePDFSchema(InfoDictionary info)
      Get AdobePDF representation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.
      Parameters:
      info - information dictionary representation of current document
      Returns:
      AdobePDF schema or null
    • getXMPBasicSchema

      XMPBasic getXMPBasicSchema(InfoDictionary info)
      Get XMPBasic representation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.
      Parameters:
      info - information dictionary representation of current document
      Returns:
      XMPBasic schema or null
    • isNeedToBeUpdated

      boolean isNeedToBeUpdated()
      Returns:
    • setNeedToBeUpdated

      void setNeedToBeUpdated(boolean needToBeUpdated)
      Parameters:
      needToBeUpdated -
    • updateMetadataStream

      void updateMetadataStream(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) throws Exception
      Update metadata stream from applied changes. If metadata was not changed than no updates applied
      Throws:
      Exception - problems with stream update