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); }
Modifier and Type | Method and Description |
---|---|
String |
getApplicationTemplate()
Gets the application template.
|
String |
getAuthor()
Gets the document's author.
|
String |
getCategory()
Gets the category.
|
String |
getComments()
Gets the comments.
|
String |
getCompany()
Gets the company.
|
String |
getContentStatus()
Gets the content status.
|
String |
getContentType()
Gets the content type.
|
Date |
getCreatedTime()
Gets the document created date.
|
String |
getHyperlinkBase()
Gets the hyperlink base.
|
String |
getKeywords()
Gets the keywords.
|
Date |
getLastPrintedDate()
Gets the last printed date.
|
String |
getLastSavedBy()
Gets the name of the last author.
|
Date |
getLastSavedTime()
Gets the date and time when the presentation was modified last time.
|
String |
getManager()
Gets the manager.
|
String |
getNameOfApplication()
Gets the name of the application created the document.
|
String |
getPresentationFormat()
Gets the presentation format.
|
int |
getRevisionNumber()
Gets the revision number.
|
boolean |
getSharedDoc()
Gets a value indicating whether the presentation is shared between multiple people.
|
String |
getSubject()
Gets the subject.
|
String |
getTitle()
Gets the title of the document.
|
double |
getTotalEditingTime()
Gets the total editing time of the document.
|
String |
getVersion()
Gets the application version.
|
void |
set(String propertyName,
boolean value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
Date value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
double value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
int value)
Adds or replaces the metadata property with the specified name.
|
void |
set(String propertyName,
String value)
Adds or replaces the metadata property with the specified name.
|
void |
setApplicationTemplate(String value)
Sets the application template.
|
void |
setAuthor(String value)
Sets the document's author.
|
void |
setCategory(String value)
Sets the category.
|
void |
setComments(String value)
Sets the comments.
|
void |
setCompany(String value)
Sets the company.
|
void |
setContentStatus(String value)
Sets the content status.
|
void |
setContentType(String value)
Sets the content type.
|
void |
setCreatedTime(Date value)
Sets the document created date.
|
void |
setHyperlinkBase(String value)
Sets the hyperlink base.
|
void |
setKeywords(String value)
Sets the keywords.
|
void |
setLastPrintedDate(Date value)
Sets the last printed date.
|
void |
setLastSavedBy(String value)
Sets the name of the last author.
|
void |
setManager(String value)
Sets the manager.
|
void |
setRevisionNumber(int value)
Sets the revision number.
|
void |
setSharedDoc(boolean value)
Sets a value indicating whether the presentation is shared between multiple people.
|
void |
setSubject(String value)
Sets the subject.
|
void |
setTitle(String value)
Sets the title of the document.
|
void |
setTotalEditingTime(double value)
Sets the total editing time of the document.
|
clear, clearBuiltInProperties, clearCustomProperties, remove
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final String getApplicationTemplate()
Gets the application template.
public final void setApplicationTemplate(String value)
Sets the application template.
value
- The application template.public final String getAuthor()
Gets the document's author.
public final void setAuthor(String value)
Sets the document's author.
value
- The author.public final String getCategory()
Gets the category.
public final void setCategory(String value)
Sets the category.
value
- The category.public final String getComments()
Gets the comments.
public final void setComments(String value)
Sets the comments.
value
- The comments.public final String getCompany()
Gets the company.
public final void setCompany(String value)
Sets the company.
value
- The company.public final String getContentStatus()
Gets the content status. Can be updated in a PPTX document only.
public final void setContentStatus(String value)
Sets the content status. Can be updated in a PPTX document only.
value
- The content status.
public final String getContentType()
Gets the content type. Can be updated in a PPTX document only.
public final void setContentType(String value)
Sets the content type. Can be updated in a PPTX document only.
value
- The type of the content.
public final Date getCreatedTime()
Gets the document created date.
public final void setCreatedTime(Date value)
Sets the document created date.
value
- The document created date.public final String getKeywords()
Gets the keywords.
public final void setKeywords(String value)
Sets the keywords.
value
- The keywords.public final Date getLastPrintedDate()
Gets the last printed date.
public final void setLastPrintedDate(Date value)
Sets the last printed date.
value
- The last printed date.public final Date getLastSavedTime()
Gets the date and time when the presentation was modified last time.
public final String getLastSavedBy()
Gets the name of the last author.
public final void setLastSavedBy(String value)
Sets the name of the last author.
value
- The last saved by.public final String getManager()
Gets the manager.
public final void setManager(String value)
Sets the manager.
value
- The manager.public final String getNameOfApplication()
Gets the name of the application created the document.
public final int getRevisionNumber()
Gets the revision number.
public final void setRevisionNumber(int value)
Sets the revision number.
value
- The revision number.public final String getSubject()
Gets the subject.
public final void setSubject(String value)
Sets the subject.
value
- The subject.public final String getTitle()
Gets the title of the document.
public final void setTitle(String value)
Sets the title of the document.
value
- The title.public final String getVersion()
Gets the application version.
public final String getHyperlinkBase()
Gets the hyperlink base.
public final void setHyperlinkBase(String value)
Sets the hyperlink base.
value
- The hyperlink base.
public final String getPresentationFormat()
Gets 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.
true
if the presentation shared between multiple people; otherwise, false
.
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.
value
- true
if the presentation shared between multiple people; otherwise, false
.
public final double getTotalEditingTime()
Gets the total editing time of the document.
public final void setTotalEditingTime(double value)
Sets the total editing time of the document.
value
- 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.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, boolean value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, Date value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, int value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.public final void set(String propertyName, double value)
Adds or replaces the metadata property with the specified name.
propertyName
- The property name.value
- The property value.