Class XMPHelper


  • public class XMPHelper
    extends Object
    • Method Detail

      • getXMPPacket

        public static byte[] getXMPPacket​(AppModel appModel)
      • 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.
      • 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