com.spire.pdf
Class PdfDocumentInformation

java.lang.Object
  extended by com.spire.pdf.PdfDocumentInformation

public class PdfDocumentInformation
extends java.lang.Object

A class containing the information about the document.


Constructor Summary
PdfDocumentInformation(PdfCatalog catalog)
          Creates a new object.
PdfDocumentInformation(PdfDictionary dictionary, PdfCatalog catalog)
          Initializes a new instance of the class.
 
Method Summary
 com.spire.ms.System.Collections.Generic.Dictionary getAllCustomProperties()
          Get all custom properties.
 java.lang.String getAuthor()
          Get the author.
 java.util.Date getCreationDate()
          Get the creation date.
 java.lang.String getCreator()
          Get the creator.
 java.lang.String getCustomProperty(java.lang.String name)
          Get custom property.
 java.lang.String getKeywords()
          Get the keywords.
 java.util.Date getModificationDate()
          Get the modification date.
 java.lang.String getProducer()
          Get the producer.
 java.lang.String getSubject()
          Gets or sets the subject.
 java.lang.String getTitle()
          Get the title.
 void removeCustomProperty(java.lang.String name)
          Remove custom property.
 void setAuthor(java.lang.String value)
          Set the author.
 void setCreationDate(java.util.Date date)
          Set the creation date
 void setCreator(java.lang.String value)
          Set the creator.
 void setCustomProperty(java.lang.String name, java.lang.String value)
          Set custom property.
 void setKeywords(java.lang.String value)
          Set the keywords.
 void setModificationDate(java.util.Date value)
          Set the modification date.
 void setProducer(java.lang.String value)
          Set the producer.
 void setSubject(java.lang.String value)
          Set the subject.
 void setTitle(java.lang.String value)
          Set the title.
 

Constructor Detail

PdfDocumentInformation

public PdfDocumentInformation(PdfCatalog catalog)
Creates a new object.

Parameters:
catalog - The catalog.

PdfDocumentInformation

public PdfDocumentInformation(PdfDictionary dictionary,
                              PdfCatalog catalog)
Initializes a new instance of the class.

Parameters:
dictionary - The dictionary.
catalog - The catalog.
Method Detail

getCreationDate

public java.util.Date getCreationDate()
Get the creation date.


setCreationDate

public void setCreationDate(java.util.Date date)
Set the creation date

Parameters:
date - The creation date

getModificationDate

public java.util.Date getModificationDate()
Get the modification date.


setModificationDate

public void setModificationDate(java.util.Date value)
Set the modification date.


getTitle

public java.lang.String getTitle()
Get the title.


setTitle

public void setTitle(java.lang.String value)
Set the title.

Parameters:
value - The title.

getAuthor

public java.lang.String getAuthor()
Get the author.


setAuthor

public void setAuthor(java.lang.String value)
Set the author.


getSubject

public java.lang.String getSubject()
Gets or sets the subject. Get the subject.

Returns:
The subject.

setSubject

public void setSubject(java.lang.String value)
Set the subject.


getKeywords

public java.lang.String getKeywords()
Get the keywords.

Returns:
The keywords.

setKeywords

public void setKeywords(java.lang.String value)
Set the keywords.

Parameters:
value - The keywords.

getCreator

public java.lang.String getCreator()
Get the creator.

Returns:
The creator.

setCreator

public void setCreator(java.lang.String value)
Set the creator.


getProducer

public java.lang.String getProducer()
Get the producer.

Returns:
The producer of the document.

setProducer

public void setProducer(java.lang.String value)
Set the producer.


removeCustomProperty

public void removeCustomProperty(java.lang.String name)
Remove custom property.

Parameters:
name - The property name. Name not be Title,Author,Subject,Keywords,Creator,Producer,CreationDate,ModificationDate,Trap.

setCustomProperty

public void setCustomProperty(java.lang.String name,
                              java.lang.String value)
Set custom property.

Parameters:
name - The property name. Name not be Title,Author,Subject,Keywords,Creator,Producer,CreationDate,ModificationDate,Trap.
value - The property value.

getCustomProperty

public java.lang.String getCustomProperty(java.lang.String name)
Get custom property.

Parameters:
name - The property name. Name not be Title,Author,Subject,Keywords,Creator,Producer,CreationDate,ModificationDate,Trap.
Returns:
The property value.null if property not exist.

getAllCustomProperties

public com.spire.ms.System.Collections.Generic.Dictionary getAllCustomProperties()
Get all custom properties.

Returns:
The all properties.