com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class PdfMetadata

    • Constructor Detail

      • PdfMetadata

        public PdfMetadata()

        Initializes a new instance of the PdfMetadata class.

    • Method Detail

      • getAuthor

        public final String getAuthor()

        Gets or sets document's author.

        Value: The author.
      • setAuthor

        public final void setAuthor(String value)

        Gets or sets document's author.

        Value: The author.
      • getCreatedDate

        public final Date getCreatedDate()

        Gets or sets the date of document creation.

      • setCreatedDate

        public final void setCreatedDate(Date value)

        Gets or sets the date of document creation.

      • getCreator

        public final String getCreator()

        Gets creator of the document.

        Value: The creator.


        Read-only property.

      • getKeywords

        public final String getKeywords()

        Gets or sets keywords.

        Value: The keywords.
      • setKeywords

        public final void setKeywords(String value)

        Gets or sets keywords.

        Value: The keywords.
      • getModifiedDate

        public final Date getModifiedDate()

        Gets or sets the date of document modification.

        Value: The modified date.
      • setModifiedDate

        public final void setModifiedDate(Date value)

        Gets or sets the date of document modification.

        Value: The modified date.
      • getProducer

        public final String getProducer()

        Gets document producer.

        Value: The producer.


        Read-only property.

      • getSubject

        public final String getSubject()

        Gets or sets subject of the document.

        Value: The subject.
      • setSubject

        public final void setSubject(String value)

        Gets or sets subject of the document.

        Value: The subject.
      • getTitle

        public final String getTitle()

        Gets or sets title of the document.

        Value: The title.
      • setTitle

        public final void setTitle(String value)

        Gets or sets title of the document.

        Value: The title.
      • getTrappedFlag

        public final boolean getTrappedFlag()

        Gets or sets trapped flag.

        Value: true if [trapped flag]; otherwise, false.
      • setTrappedFlag

        public final void setTrappedFlag(boolean value)

        Gets or sets trapped flag.

        Value: true if [trapped flag]; otherwise, false.
      • getVersion

        public final String getVersion()

        Gets the version of PDF, for example: 1.6 etc.

        Value: The version.
      • add

        public final void add(String key,
               String value)

        Adds metadata with string value.

        Parameters:
        key - Metadata key.
        value - Metadata value.
      • isBuiltIn

        public boolean isBuiltIn(String key)

        Returns true if metadata key is built-in in PDF document.

        Overrides:
        isBuiltIn in class DocumentMetadata<PdfMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is built-in.
        Throws:
        ArgumentNullException - Metadata key could not be null.
      • isReadOnly

        public boolean isReadOnly(String key)

        Returns true if built-in metadata key is read-only in PDF document.

        Overrides:
        isReadOnly in class DocumentMetadata<PdfMetadataProperty>
        Parameters:
        key - Metadata key.
        Returns:
        Returns true if metadata is read-only.