Package com.adobe.xfa.xmp
Class XMPHelper
java.lang.Object
com.adobe.xfa.xmp.XMPHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomInfo(String sName, String sValue) Add custom info, as in the Acrobat.DocumentProperties>Custom tab (Stored under xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/"> namespace)static StringChange the name to be a valid XFA name.getCustomInfo(String sPropName) Retrieve custom info, given the name.static byte[]getXMPPacket(AppModel appModel) metadata(int nOutputType) voidprocessDesc(Element element) voidvoidvoidvoidputPDFAdata(int iPart, String sConformance, String sAmendment) voidsetCreatorTool(String sCreatorTool, boolean bForceApply) voidsetProducer(String sProducer, boolean bForceApply) voidsynchronize(boolean bUpdateXMPPacket)
-
Field Details
-
OUTPUTTYPE_RDF
public static final int OUTPUTTYPE_RDF- See Also:
-
-
Constructor Details
-
XMPHelper
public XMPHelper(AppModel appModel, byte[] xmp, String sDateTime, boolean bAllowTemplateUpdates) throws XMPException - Throws:
XMPException
-
-
Method Details
-
getXMPPacket
-
metadata
- Throws:
XMPException
-
processTemplateDesc
- Throws:
XMPException
-
processOtherDesc
- Throws:
XMPException
-
processXMP
- Throws:
XMPException
-
processDesc
- Throws:
XMPException
-
getXPATH
-
fixupName
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
- Throws:
XMPException
-
setCreatorTool
- Throws:
XMPException
-
setProducer
- Throws:
XMPException
-
putPDFAdata
-
addCustomInfo
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 namesValue- tag value- Throws:
XMPException
-
getCustomInfo
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
-