PresentationPackage
Leave feedback
On this page
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); }
| 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. |
public final String getApplicationTemplate()
Gets the application template.
Returns: java.lang.String - The application template.
public final void setApplicationTemplate(String value)
Sets the application template.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The application template. |
public final String getAuthor()
Gets the document’s author.
Returns: java.lang.String - The author.
public final void setAuthor(String value)
Sets the document’s author.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The author. |
public final String getCategory()
Gets the category.
Returns: java.lang.String - The category.
public final void setCategory(String value)
Sets the category.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The category. |
public final String getComments()
Gets the comments.
Returns: java.lang.String - The comments.
public final void setComments(String value)
Sets the comments.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The comments. |
public final String getCompany()
Gets the company.
Returns: java.lang.String - The company.
public final void setCompany(String value)
Sets the company.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The company. |
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.
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. |
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.
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. |
public final Date getCreatedTime()
Gets the document created date.
Returns: java.util.Date - The document created date.
public final void setCreatedTime(Date value)
Sets the document created date.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.Date | The document created date. |
public final String getKeywords()
Gets the keywords.
Returns: java.lang.String - The keywords.
public final void setKeywords(String value)
Sets the keywords.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The keywords. |
public final Date getLastPrintedDate()
Gets the last printed date.
Returns: java.util.Date - The last printed date.
public final void setLastPrintedDate(Date value)
Sets the last printed date.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.Date | The last printed date. |
public final Date getLastSavedTime()
Gets the date and time when the presentation was modified last time.
Returns: java.util.Date - The last saved time.
public final String getLastSavedBy()
Gets the name of the last author.
Returns: java.lang.String - The last saved by.
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. |
public final String getManager()
Gets the manager.
Returns: java.lang.String - The manager.
public final void setManager(String value)
Sets the manager.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The manager. |
public final String getNameOfApplication()
Gets the name of the application created the document.
Returns: java.lang.String - The name of the application.
public final int getRevisionNumber()
Gets the revision number.
Returns: int - The revision number.
public final void setRevisionNumber(int value)
Sets the revision number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The revision number. |
public final String getSubject()
Gets the subject.
Returns: java.lang.String - The subject.
public final void setSubject(String value)
Sets the subject.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The subject. |
public final String getTitle()
Gets the title of the document.
Returns: java.lang.String - The title.
public final void setTitle(String value)
Sets the title of the document.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The title. |
public final String getVersion()
Gets the application version.
Returns: java.lang.String - The application version.
public final String getHyperlinkBase()
Gets the hyperlink base.
Returns: java.lang.String - The hyperlink base.
Read-only in old PPT.
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. |
public final String getPresentationFormat()
Gets the presentation format.
Returns: java.lang.String - The presentation format.
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.
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. |
public final double getTotalEditingTime()
Gets the total editing time of the document.
Returns: double - The total editing time of the document.
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. |
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. |
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. |
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. |
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. |
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. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.