com.spire.pdf.xmp
Class XmpMetadata

java.lang.Object
  extended by com.spire.pdf.xmp.XmpMetadata
All Implemented Interfaces:
IPdfWrapper

public class XmpMetadata
extends java.lang.Object
implements IPdfWrapper

Represents XMP metadata of the document.


Constructor Summary
XmpMetadata(PdfDocumentInformation documentInfo)
          Initializes a new instance of the class.
XmpMetadata(com.spire.ms.System.Xml.XmlDocument xmp)
          Initializes a new instance of the class.
 
Method Summary
 java.lang.String getAuthor()
          Return author if exists; otherwise return null
 com.spire.ms.System.DateTime getCreateDate()
          Return create date if exists; otherwise return default DateTime
 java.lang.String getCreator()
          Return creator if exists; otherwise return null
 java.lang.String getCustomProperty(java.lang.String fieldName)
          Return specified custom field value if exists; otherwise return null
 java.lang.String getKeywords()
          return keywords if exists; otherwise return null
 java.util.Date getModifyDate()
          Return modify date if exists; otherwise return default DateTime
 com.spire.ms.System.Xml.XmlNamespaceManager getNamespaceManager()
          Gets namespace manager of the Xmp metadata.
 java.lang.String getProducer()
          Return producer if exists; otherwise return null
 java.lang.String getSubject()
          Return subject if exists; otherwise return null
 java.lang.String getTitle()
          Return title if exists; otherwise return null
 com.spire.ms.System.Xml.XmlDocument getXmlData()
          Gets XMP data in XML format.
 void load(com.spire.ms.System.Xml.XmlDocument xmp)
          Loads XMP from the XML.
 void setAuthor(java.lang.String value)
          Set subject to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setCreateDate(java.util.Date dt)
          Set title to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setCreator(java.lang.String value)
          Set Creator to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setCustomProperty(java.lang.String field, java.lang.String value)
          Set custom property to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setKeywords(java.lang.String value)
          Set keywords to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setModifyDate(java.util.Date dt)
          Set ModifyDates to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setPdfStream(PdfStream stream)
           
 void setProducer(java.lang.String value)
          Set producer to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setSubject(java.lang.String value)
          Set subject to xmpmeta; if value is null, remove the node; if the node is null, create the node
 void setTitle(java.lang.String value)
          Set title to xmpmeta; if value is null, remove the node; if the node is null, create the node
 

Constructor Detail

XmpMetadata

public XmpMetadata(PdfDocumentInformation documentInfo)
Initializes a new instance of the class.


XmpMetadata

public XmpMetadata(com.spire.ms.System.Xml.XmlDocument xmp)
Initializes a new instance of the class.

Parameters:
xmp - The XMP.
Method Detail

getXmlData

public com.spire.ms.System.Xml.XmlDocument getXmlData()
Gets XMP data in XML format.


getNamespaceManager

public com.spire.ms.System.Xml.XmlNamespaceManager getNamespaceManager()
Gets namespace manager of the Xmp metadata.


setPdfStream

public void setPdfStream(PdfStream stream)

load

public void load(com.spire.ms.System.Xml.XmlDocument xmp)
Loads XMP from the XML.

Parameters:
xmp - XMP data in XMLDocument.
See Also:
If there was any data in this XMP, it will be replaced by the data from the XML.

getTitle

public java.lang.String getTitle()
Return title if exists; otherwise return null

Returns:

getSubject

public java.lang.String getSubject()
Return subject if exists; otherwise return null

Returns:

getAuthor

public java.lang.String getAuthor()
Return author if exists; otherwise return null

Returns:

getProducer

public java.lang.String getProducer()
Return producer if exists; otherwise return null

Returns:

getKeywords

public java.lang.String getKeywords()
return keywords if exists; otherwise return null

Returns:

getCustomProperty

public java.lang.String getCustomProperty(java.lang.String fieldName)
Return specified custom field value if exists; otherwise return null

Parameters:
fieldName -
Returns:

getCreateDate

public com.spire.ms.System.DateTime getCreateDate()
Return create date if exists; otherwise return default DateTime

Returns:

getCreator

public java.lang.String getCreator()
Return creator if exists; otherwise return null

Returns:

getModifyDate

public java.util.Date getModifyDate()
Return modify date if exists; otherwise return default DateTime

Returns:

setTitle

public void setTitle(java.lang.String value)
Set title to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setSubject

public void setSubject(java.lang.String value)
Set subject to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setAuthor

public void setAuthor(java.lang.String value)
Set subject to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setProducer

public void setProducer(java.lang.String value)
Set producer to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setKeywords

public void setKeywords(java.lang.String value)
Set keywords to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setCustomProperty

public void setCustomProperty(java.lang.String field,
                              java.lang.String value)
Set custom property to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
field -
value -

setCreateDate

public void setCreateDate(java.util.Date dt)
Set title to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
dt -

setCreator

public void setCreator(java.lang.String value)
Set Creator to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
value -

setModifyDate

public void setModifyDate(java.util.Date dt)
Set ModifyDates to xmpmeta; if value is null, remove the node; if the node is null, create the node

Parameters:
dt -