com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class DocumentInfo

  • java.lang.Object
    • com.aspose.ms.System.Collections.Hashtable
      • com.aspose.pdf.DocumentInfo
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IDictionary, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.ICloneable, com.aspose.ms.System.Runtime.Serialization.IDeserializationCallback, com.aspose.ms.System.Runtime.Serialization.ISerializable, Iterable, Map


    public final class DocumentInfo
    extends com.aspose.ms.System.Collections.Hashtable

    Represents meta information of PDF document.

    • Constructor Detail

      • DocumentInfo

        public DocumentInfo(IDocument document)

        Initialize DocumentInfo instance.

        Parameters:
        document - The info of this document will be used for initialization.
    • Method Detail

      • getTitle

        public String getTitle()

        Gets document title.

        Returns:
        String value
      • setTitle

        public void setTitle(String value)

        Sets document title.

        Parameters:
        value - String value
      • getCreator

        public String getCreator()

        Gets document creator.

        Returns:
        String value
      • getAuthor

        public String getAuthor()

        Gets document author.

        Returns:
        String value
      • setAuthor

        public void setAuthor(String value)

        Sets document author.

        Parameters:
        value - String value
      • getSubject

        public String getSubject()

        Gets the subject of the document.

        Returns:
        String value
      • setSubject

        public void setSubject(String value)

        Sets the subject of the document.

        Parameters:
        value - String value
      • getKeywords

        public String getKeywords()

        Gets the keywords of the document.

        Returns:
        String value
      • setKeywords

        public void setKeywords(String value)

        Set the keywords of the document.

        Parameters:
        value - String value
      • getProducer

        public String getProducer()

        Gets the document producer.

        Returns:
        String value
      • getCreationDate

        public Date getCreationDate()

        Gets the date of document creation.

        Returns:
        Date object
      • setCreationDate

        public void setCreationDate(Date value)

        Sets the date of document creation.

        Parameters:
        value - Date object
      • getCreationTimeZone

        public double getCreationTimeZone()

        Time zone of creation date in milliseconds.

        Returns:
        double value
      • setCreationTimeZone

        public void setCreationTimeZone(double value)

        Time zone of creation date in milliseconds.

        Parameters:
        value - in milliseconds
      • getModTimeZone

        public double getModTimeZone()

        Time zone of modification date.

        Returns:
        double value
      • setModTimeZone

        public void setModTimeZone(double value)

        Time zone of modification date.

        Parameters:
        value - double value
      • getModDate

        public Date getModDate()

        Gets the date of document modification.

        Returns:
        Date object
      • setModDate

        public void setModDate(Date value)

        Sets the date of document modification.

        Parameters:
        value - Date object
      • getTrapped

        public String getTrapped()

        Gets the trapped flag.

        Returns:
        String value
      • setTrapped

        public void setTrapped(String value)

        Sets the trapped flag.

        Parameters:
        value - String value
      • clear

        public void clear()

        Clears the document info.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.IDictionary
        Specified by:
        clear in interface Map
        Overrides:
        clear in class com.aspose.ms.System.Collections.Hashtable
      • addItem

        public void addItem(Object key,
                   Object value)

        Adds an element with the specified key and value into the collection.

        Specified by:
        addItem in interface com.aspose.ms.System.Collections.IDictionary
        Overrides:
        addItem in class com.aspose.ms.System.Collections.Hashtable
        Parameters:
        key - The key of the element to add.
        value - The value of the element to add. The value can be null.
      • removeItem

        public void removeItem(Object key)

        Removes the element with the specified key from the collection.

        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.IDictionary
        Overrides:
        removeItem in class com.aspose.ms.System.Collections.Hashtable
        Parameters:
        key - The key of the element to remove.
      • get_Item

        public Object get_Item(Object key)

        Gets the value associated with the specified key.

        Specified by:
        get_Item in interface com.aspose.ms.System.Collections.IDictionary
        Overrides:
        get_Item in class com.aspose.ms.System.Collections.Hashtable
        Parameters:
        key - The key whose value to get or set.
        Returns:
        Value Object
      • set_Item

        public void set_Item(Object key,
                    Object value)

        Sets the value associated with the specified key.

        Specified by:
        set_Item in interface com.aspose.ms.System.Collections.IDictionary
        Overrides:
        set_Item in class com.aspose.ms.System.Collections.Hashtable
        Parameters:
        key - String Object
        value - Object
      • clearCustomData

        public void clearCustomData()

        Clears custom data only, leaves all other predefined values (Title, Author, etc.).

      • isPredefinedKey

        public static boolean isPredefinedKey(String key)

        Determines if the key is predefined (Title, Author, etc.), not custom.

        Parameters:
        key - Selected key
        Returns:
        True in case the key is predefined.