public class XMPHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
OUTPUTTYPE_RDF |
| Constructor and Description |
|---|
XMPHelper(AppModel appModel,
byte[] xmp,
String sDateTime,
boolean bAllowTemplateUpdates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomInfo(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 String |
fixupName(String sName)
Change the name to be a valid XFA name.
|
String |
getCustomInfo(String sPropName)
Retrieve custom info, given the name.
|
static byte[] |
getXMPPacket(AppModel appModel) |
String |
getXPATH(Element oNode) |
String |
metadata(int nOutputType) |
void |
processDesc(Element element) |
void |
processOtherDesc() |
void |
processTemplateDesc() |
void |
processXMP() |
void |
putPDFAdata(int iPart,
String sConformance,
String sAmendment) |
void |
setCreatorTool(String sCreatorTool,
boolean bForceApply) |
void |
setProducer(String sProducer,
boolean bForceApply) |
void |
synchronize(boolean bUpdateXMPPacket) |
public static final int OUTPUTTYPE_RDF
public XMPHelper(AppModel appModel, byte[] xmp, String sDateTime, boolean bAllowTemplateUpdates) throws XMPException
XMPExceptionpublic static byte[] getXMPPacket(AppModel appModel)
public String metadata(int nOutputType) throws XMPException
XMPExceptionpublic void processTemplateDesc()
throws XMPException
XMPExceptionpublic void processOtherDesc()
throws XMPException
XMPExceptionpublic void processXMP()
throws XMPException
XMPExceptionpublic void processDesc(Element element) throws XMPException
XMPExceptionpublic static String fixupName(String sName)
public void synchronize(boolean bUpdateXMPPacket)
throws XMPException
XMPExceptionpublic void setCreatorTool(String sCreatorTool, boolean bForceApply) throws XMPException
XMPExceptionpublic void setProducer(String sProducer, boolean bForceApply) throws XMPException
XMPExceptionpublic void addCustomInfo(String sName, String sValue) throws XMPException
sName - tag namesValue - tag valueXMPExceptionpublic String getCustomInfo(String sPropName) throws XMPException
sPropName - property nameXMPExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved