PresentationPackage

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage, com.groupdocs.metadata.core.DocumentPackage

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); }

Methods

Method Description
getApplicationTemplate() Gets the application template.
setApplicationTemplate(String value) Sets the application template.
getAuthor() Gets the document’s author.
setAuthor(String value) Sets the document’s author.
getCategory() Gets the category.
setCategory(String value) Sets the category.
getComments() Gets the comments.
setComments(String value) Sets the comments.
getCompany() Gets the company.
setCompany(String value) Sets the company.
getContentStatus() Gets the content status.
setContentStatus(String value) Sets the content status.
getContentType() Gets the content type.
setContentType(String value) Sets the content type.
getCreatedTime() Gets the document created date.
setCreatedTime(Date value) Sets the document created date.
getKeywords() Gets the keywords.
setKeywords(String value) Sets the keywords.
getLastPrintedDate() Gets the last printed date.
setLastPrintedDate(Date value) Sets the last printed date.
getLastSavedTime() Gets the date and time when the presentation was modified last time.
getLastSavedBy() Gets the name of the last author.
setLastSavedBy(String value) Sets the name of the last author.
getManager() Gets the manager.
setManager(String value) Sets the manager.
getNameOfApplication() Gets the name of the application created the document.
getRevisionNumber() Gets the revision number.
setRevisionNumber(int value) Sets the revision number.
getSubject() Gets the subject.
setSubject(String value) Sets the subject.
getTitle() Gets the title of the document.
setTitle(String value) Sets the title of the document.
getVersion() Gets the application version.
getHyperlinkBase() Gets the hyperlink base.
setHyperlinkBase(String value) Sets the hyperlink base.
getPresentationFormat() Gets the presentation format.
getSharedDoc() Gets a value indicating whether the presentation is shared between multiple people.
setSharedDoc(boolean value) Sets a value indicating whether the presentation is shared between multiple people.
getTotalEditingTime() Gets the total editing time of the document.
setTotalEditingTime(double value) Sets the total editing time of the document.
set(String propertyName, String value) Adds or replaces the metadata property with the specified name.
set(String propertyName, boolean value) Adds or replaces the metadata property with the specified name.
set(String propertyName, Date value) Adds or replaces the metadata property with the specified name.
set(String propertyName, int value) Adds or replaces the metadata property with the specified name.
set(String propertyName, double value) Adds or replaces the metadata property with the specified name.

getApplicationTemplate()

public final String getApplicationTemplate()

Gets the application template.

Returns: java.lang.String - The application template.

setApplicationTemplate(String value)

public final void setApplicationTemplate(String value)

Sets the application template.

Parameters:

Parameter Type Description
value java.lang.String The application template.

getAuthor()

public final String getAuthor()

Gets the document’s author.

Returns: java.lang.String - The author.

setAuthor(String value)

public final void setAuthor(String value)

Sets the document’s author.

Parameters:

Parameter Type Description
value java.lang.String The author.

getCategory()

public final String getCategory()

Gets the category.

Returns: java.lang.String - The category.

setCategory(String value)

public final void setCategory(String value)

Sets the category.

Parameters:

Parameter Type Description
value java.lang.String The category.

getComments()

public final String getComments()

Gets the comments.

Returns: java.lang.String - The comments.

setComments(String value)

public final void setComments(String value)

Sets the comments.

Parameters:

Parameter Type Description
value java.lang.String The comments.

getCompany()

public final String getCompany()

Gets the company.

Returns: java.lang.String - The company.

setCompany(String value)

public final void setCompany(String value)

Sets the company.

Parameters:

Parameter Type Description
value java.lang.String The company.

getContentStatus()

public final String getContentStatus()

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

Returns: java.lang.String - The content status.


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

setContentStatus(String value)

public final void setContentStatus(String value)

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

Parameters:

Parameter Type Description
value java.lang.String 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: java.lang.String - The type of the content.


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

setContentType(String value)

public final void setContentType(String value)

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

Parameters:

Parameter Type Description
value java.lang.String 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: java.util.Date - The document created date.

setCreatedTime(Date value)

public final void setCreatedTime(Date value)

Sets the document created date.

Parameters:

Parameter Type Description
value java.util.Date The document created date.

getKeywords()

public final String getKeywords()

Gets the keywords.

Returns: java.lang.String - The keywords.

setKeywords(String value)

public final void setKeywords(String value)

Sets the keywords.

Parameters:

Parameter Type Description
value java.lang.String The keywords.

getLastPrintedDate()

public final Date getLastPrintedDate()

Gets the last printed date.

Returns: java.util.Date - The last printed date.

setLastPrintedDate(Date value)

public final void setLastPrintedDate(Date value)

Sets the last printed date.

Parameters:

Parameter Type Description
value java.util.Date The last printed date.

getLastSavedTime()

public final Date getLastSavedTime()

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

Returns: java.util.Date - The last saved time.

getLastSavedBy()

public final String getLastSavedBy()

Gets the name of the last author.

Returns: java.lang.String - The last saved by.

setLastSavedBy(String value)

public final void setLastSavedBy(String value)

Sets the name of the last author.

Parameters:

Parameter Type Description
value java.lang.String The last saved by.

getManager()

public final String getManager()

Gets the manager.

Returns: java.lang.String - The manager.

setManager(String value)

public final void setManager(String value)

Sets the manager.

Parameters:

Parameter Type Description
value java.lang.String The manager.

getNameOfApplication()

public final String getNameOfApplication()

Gets the name of the application created the document.

Returns: java.lang.String - The name of the application.

getRevisionNumber()

public final int getRevisionNumber()

Gets the revision number.

Returns: int - The revision number.

setRevisionNumber(int value)

public final void setRevisionNumber(int value)

Sets the revision number.

Parameters:

Parameter Type Description
value int The revision number.

getSubject()

public final String getSubject()

Gets the subject.

Returns: java.lang.String - The subject.

setSubject(String value)

public final void setSubject(String value)

Sets the subject.

Parameters:

Parameter Type Description
value java.lang.String The subject.

getTitle()

public final String getTitle()

Gets the title of the document.

Returns: java.lang.String - The title.

setTitle(String value)

public final void setTitle(String value)

Sets the title of the document.

Parameters:

Parameter Type Description
value java.lang.String The title.

getVersion()

public final String getVersion()

Gets the application version.

Returns: java.lang.String - The application version.

getHyperlinkBase()

public final String getHyperlinkBase()

Gets the hyperlink base.

Returns: java.lang.String - The hyperlink base.


Read-only in old PPT.

setHyperlinkBase(String value)

public final void setHyperlinkBase(String value)

Sets the hyperlink base.

Parameters:

Parameter Type Description
value java.lang.String The hyperlink base.

Read-only in old PPT. |

getPresentationFormat()

public final String getPresentationFormat()

Gets the presentation format.

Returns: java.lang.String - 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: boolean - 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(boolean value)

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:

Parameter Type Description
value boolean 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: double - The total editing time of the document.

setTotalEditingTime(double value)

public final void setTotalEditingTime(double value)

Sets the total editing time of the document.

Parameters:

Parameter Type Description
value double The total editing time of the document.

set(String propertyName, String value)

public final void set(String propertyName, String value)

Adds or replaces the metadata property with the specified name.

Parameters:

Parameter Type Description
propertyName java.lang.String The property name.
value java.lang.String The property value.

set(String propertyName, boolean value)

public final void set(String propertyName, boolean value)

Adds or replaces the metadata property with the specified name.

Parameters:

Parameter Type Description
propertyName java.lang.String The property name.
value boolean The property value.

set(String propertyName, Date value)

public final void set(String propertyName, Date value)

Adds or replaces the metadata property with the specified name.

Parameters:

Parameter Type Description
propertyName java.lang.String The property name.
value java.util.Date The property value.

set(String propertyName, int value)

public final void set(String propertyName, int value)

Adds or replaces the metadata property with the specified name.

Parameters:

Parameter Type Description
propertyName java.lang.String The property name.
value int The property value.

set(String propertyName, double value)

public final void set(String propertyName, double value)

Adds or replaces the metadata property with the specified name.

Parameters:

Parameter Type Description
propertyName java.lang.String The property name.
value double The property value.