Class XMPHelper

java.lang.Object
com.adobe.xfa.xmp.XMPHelper

public class XMPHelper extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getXMPPacket

      public static byte[] getXMPPacket(AppModel appModel)
    • metadata

      public String metadata(int nOutputType) throws XMPException
      Throws:
      XMPException
    • processTemplateDesc

      public void processTemplateDesc() throws XMPException
      Throws:
      XMPException
    • processOtherDesc

      public void processOtherDesc() throws XMPException
      Throws:
      XMPException
    • processXMP

      public void processXMP() throws XMPException
      Throws:
      XMPException
    • processDesc

      public void processDesc(Element element) throws XMPException
      Throws:
      XMPException
    • getXPATH

      public String getXPATH(Element oNode)
    • fixupName

      public static String fixupName(String sName)
      Change the name to be a valid XFA name. Replace all illegal XFA name characters with underscore and ensure name does not start with a underscore.
    • synchronize

      public void synchronize(boolean bUpdateXMPPacket) throws XMPException
      Throws:
      XMPException
    • setCreatorTool

      public void setCreatorTool(String sCreatorTool, boolean bForceApply) throws XMPException
      Throws:
      XMPException
    • setProducer

      public void setProducer(String sProducer, boolean bForceApply) throws XMPException
      Throws:
      XMPException
    • putPDFAdata

      public void putPDFAdata(int iPart, String sConformance, String sAmendment)
    • addCustomInfo

      public void addCustomInfo(String sName, String sValue) throws XMPException
      Add custom info, as in the Acrobat.DocumentProperties>Custom tab (Stored under xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/"> namespace)
      Parameters:
      sName - tag name
      sValue - tag value
      Throws:
      XMPException
    • getCustomInfo

      public String getCustomInfo(String sPropName) throws XMPException
      Retrieve custom info, given the name. Returns The value if a name/value pair was found. Returns null if no such name/value pair was found
      Parameters:
      sPropName - property name
      Returns:
      the value if a name/value pair was found otherwise null
      Throws:
      XMPException