public final class PresentationInfo extends java.lang.Object implements IPresentationInfo
Information about presentation file
Modifier and Type | Method and Description |
---|---|
int |
getLoadFormat()
Gets format of the binded presentation.
|
boolean |
isEncrypted()
Gets True if binded presentation is encrypted, otherwise False.
|
IDocumentProperties |
readDocumentProperties()
Gets document properties of binded presentation.
|
void |
updateDocumentProperties(IDocumentProperties documentProperties)
Updates properties of binded presentation.
|
void |
writeBindedPresentation(java.io.OutputStream stream)
Writes binded presentation to stream.
|
void |
writeBindedPresentation(java.lang.String file)
Writes binded presentation to file.
|
public final boolean isEncrypted()
Gets True if binded presentation is encrypted, otherwise False.
Read-only boolean
.
isEncrypted
in interface IPresentationInfo
public final int getLoadFormat()
Gets format of the binded presentation.
Read-only LoadFormat
.
getLoadFormat
in interface IPresentationInfo
public final IDocumentProperties readDocumentProperties()
Gets document properties of binded presentation.
readDocumentProperties
in interface IPresentationInfo
public final void updateDocumentProperties(IDocumentProperties documentProperties)
Updates properties of binded presentation.
This sample shows how to call theupdateDocumentProperties(IDocumentProperties)
method to update the document properties returned by call of thereadDocumentProperties()
method.IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx"); IDocumentProperties props = info.readDocumentProperties(); props.setSubject("New subject"); props.setLastSavedTime(Calendar.getInstance().getTime()); info.updateDocumentProperties(props); info.writeBindedPresentation("new_pres.pptx");
updateDocumentProperties
in interface IPresentationInfo
public final void writeBindedPresentation(java.io.OutputStream stream)
Writes binded presentation to stream.
writeBindedPresentation
in interface IPresentationInfo
stream
- The stream must be seekable and writable.public final void writeBindedPresentation(java.lang.String file)
Writes binded presentation to file.
writeBindedPresentation
in interface IPresentationInfo
file
- Presentation file.