xmpmetadata-ag凯发旗舰厅



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( 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( 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 -


网站地图