com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class PresentationPackage

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public class PresentationPackage
    extends DocumentPackage

    Represents a native metadata package in a presentation.

    Learn more

    This example demonstrates how to update built-in metadata properties in a presentation.

    
     try (Metadata metadata = new Metadata(Constants.InputPptx)) {
         PresentationRootPackage root = metadata.getRootPackageGeneric();
         root.getDocumentProperties().setAuthor("test author");
         root.getDocumentProperties().setCreatedTime(new Date());
         root.getDocumentProperties().setCompany("GroupDocs");
         root.getDocumentProperties().setCategory("test category");
         root.getDocumentProperties().setKeywords("metadata, built-in, update");
         // ...
         metadata.save(Constants.OutputPptx);
     }
     
    • Method Detail

      • getApplicationTemplate

        public final String getApplicationTemplate()

        Gets the application template.

        Returns:
        The application template.
      • setApplicationTemplate

        public final void setApplicationTemplate(String value)

        Sets the application template.

        Parameters:
        value - The application template.
      • getAuthor

        public final String getAuthor()

        Gets the document's author.

        Returns:
        The author.
      • setAuthor

        public final void setAuthor(String value)

        Sets the document's author.

        Parameters:
        value - The author.
      • getCategory

        public final String getCategory()

        Gets the category.

        Returns:
        The category.
      • setCategory

        public final void setCategory(String value)

        Sets the category.

        Parameters:
        value - The category.
      • getComments

        public final String getComments()

        Gets the comments.

        Returns:
        The comments.
      • setComments

        public final void setComments(String value)

        Sets the comments.

        Parameters:
        value - The comments.
      • getCompany

        public final String getCompany()

        Gets the company.

        Returns:
        The company.
      • setCompany

        public final void setCompany(String value)

        Sets the company.

        Parameters:
        value - The company.
      • getContentStatus

        public final String getContentStatus()

        Gets the content status. Can be updated in a PPTX document only.

        Returns:
        The content status.


        Can be updated in a PPTX document only. Read-only for other supported formats.
      • setContentStatus

        public final void setContentStatus(String value)

        Sets the content status. Can be updated in a PPTX document only.

        Parameters:
        value - The content status.


        Can be updated in a PPTX document only. Read-only for other supported formats.
      • getContentType

        public final String getContentType()

        Gets the content type. Can be updated in a PPTX document only.

        Returns:
        The type of the content.


        Can be updated in a PPTX document only. Read-only for other supported formats.
      • setContentType

        public final void setContentType(String value)

        Sets the content type. Can be updated in a PPTX document only.

        Parameters:
        value - The type of the content.


        Can be updated in a PPTX document only. Read-only for other supported formats.
      • getCreatedTime

        public final Date getCreatedTime()

        Gets the document created date.

        Returns:
        The document created date.
      • setCreatedTime

        public final void setCreatedTime(Date value)

        Sets the document created date.

        Parameters:
        value - The document created date.
      • getKeywords

        public final String getKeywords()

        Gets the keywords.

        Returns:
        The keywords.
      • setKeywords

        public final void setKeywords(String value)

        Sets the keywords.

        Parameters:
        value - The keywords.
      • getLastPrintedDate

        public final Date getLastPrintedDate()

        Gets the last printed date.

        Returns:
        The last printed date.
      • setLastPrintedDate

        public final void setLastPrintedDate(Date value)

        Sets the last printed date.

        Parameters:
        value - The last printed date.
      • getLastSavedTime

        public final Date getLastSavedTime()

        Gets the date and time when the presentation was modified last time.

        Returns:
        The last saved time.
      • getLastSavedBy

        public final String getLastSavedBy()

        Gets the name of the last author.

        Returns:
        The last saved by.
      • setLastSavedBy

        public final void setLastSavedBy(String value)

        Sets the name of the last author.

        Parameters:
        value - The last saved by.
      • getManager

        public final String getManager()

        Gets the manager.

        Returns:
        The manager.
      • setManager

        public final void setManager(String value)

        Sets the manager.

        Parameters:
        value - The manager.
      • getNameOfApplication

        public final String getNameOfApplication()

        Gets the name of the application created the document.

        Returns:
        The name of the application.
      • getRevisionNumber

        public final int getRevisionNumber()

        Gets the revision number.

        Returns:
        The revision number.
      • setRevisionNumber

        public final void setRevisionNumber(int value)

        Sets the revision number.

        Parameters:
        value - The revision number.
      • getSubject

        public final String getSubject()

        Gets the subject.

        Returns:
        The subject.
      • setSubject

        public final void setSubject(String value)

        Sets the subject.

        Parameters:
        value - The subject.
      • getTitle

        public final String getTitle()

        Gets the title of the document.

        Returns:
        The title.
      • setTitle

        public final void setTitle(String value)

        Sets the title of the document.

        Parameters:
        value - The title.
      • getVersion

        public final String getVersion()

        Gets the application version.

        Returns:
        The application version.
      • getHyperlinkBase

        public final String getHyperlinkBase()

        Gets the hyperlink base.

        Returns:
        The hyperlink base.


        Read-only in old PPT.
      • setHyperlinkBase

        public final void setHyperlinkBase(String value)

        Sets the hyperlink base.

        Parameters:
        value - The hyperlink base.


        Read-only in old PPT.
      • getPresentationFormat

        public final String getPresentationFormat()

        Gets the presentation format.

        Returns:
        The presentation format.
      • getSharedDoc

        public final boolean getSharedDoc()

        Gets a value indicating whether the presentation is shared between multiple people. Can be updated in a PPTX document only.

        Returns:
        true if the presentation shared between multiple people; otherwise, false.


        Can be updated in a PPTX document only. Read-only for other formats like PPT, POT etc.
      • setSharedDoc

        public final void setSharedDoc(boolean value)

        Sets a value indicating whether the presentation is shared between multiple people. Can be updated in a PPTX document only.

        Parameters:
        value - true if the presentation shared between multiple people; otherwise, false.


        Can be updated in a PPTX document only. Read-only for other formats like PPT, POT etc.
      • getTotalEditingTime

        public final double getTotalEditingTime()

        Gets the total editing time of the document.

        Returns:
        The total editing time of the document.
      • setTotalEditingTime

        public final void setTotalEditingTime(double value)

        Sets the total editing time of the document.

        Parameters:
        value - The total editing time of the document.
      • set

        public final void set(String propertyName,
                              String value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              boolean value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              Date value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              int value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.
      • set

        public final void set(String propertyName,
                              double value)

        Adds or replaces the metadata property with the specified name.

        Parameters:
        propertyName - The property name.
        value - The property value.