Package com.adobe.xfa.xmp
Class XMPHelper
- java.lang.Object
-
- com.adobe.xfa.xmp.XMPHelper
-
public class XMPHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intOUTPUTTYPE_RDF
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomInfo(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 StringfixupName(String sName)Change the name to be a valid XFA name.StringgetCustomInfo(String sPropName)Retrieve custom info, given the name.static byte[]getXMPPacket(AppModel appModel)StringgetXPATH(Element oNode)Stringmetadata(int nOutputType)voidprocessDesc(Element element)voidprocessOtherDesc()voidprocessTemplateDesc()voidprocessXMP()voidputPDFAdata(int iPart, String sConformance, String sAmendment)voidsetCreatorTool(String sCreatorTool, boolean bForceApply)voidsetProducer(String sProducer, boolean bForceApply)voidsynchronize(boolean bUpdateXMPPacket)
-
-
-
Field Detail
-
OUTPUTTYPE_RDF
public static final int OUTPUTTYPE_RDF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMPHelper
public XMPHelper(AppModel appModel, byte[] xmp, String sDateTime, boolean bAllowTemplateUpdates) throws XMPException
- Throws:
XMPException
-
-
Method Detail
-
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
-
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
-
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 namesValue- 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
-
-