Class PDFAAdapter

java.lang.Object
org.apache.xmlgraphics.xmp.XMPSchemaAdapter
org.apache.xmlgraphics.xmp.schemas.pdf.PDFAAdapter

public class PDFAAdapter extends XMPSchemaAdapter
Schema adapter implementation for both the old (deprecated) and the current PDF/A schema. The old namespace is still needed to make Adobe Acrobat happy.
  • Constructor Details

    • PDFAAdapter

      public PDFAAdapter(Metadata meta, String namespace)
      Constructs a new adapter for PDF/A around the given metadata object.
      Parameters:
      meta - the underlying metadata
      namespace - the namespace to access the schema (must be one of the PDF/A schema namespaces)
  • Method Details

    • setPart

      public void setPart(int value)
      Sets the PDF/A version identifier ("part").
      Parameters:
      value - the version identifier ("1" for PDF/A-1)
    • getPart

      public int getPart()
      Returns:
      the PDF/A version identifier
    • setAmendment

      public void setAmendment(String value)
      Sets the PDF/A amendment identifier ("amd").
      Parameters:
      value - the amendment identifiert
    • getAmendment

      public String getAmendment()
      Returns:
      the PDF/A amendment identifier
    • setConformance

      public void setConformance(String value)
      Sets the PDF/A conformance level.
      Parameters:
      value - the conformance level ("A" or "B" for PDF/A-1)
    • getConformance

      public String getConformance()
      Returns:
      the PDF/A conformance level