public interface 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.
|
boolean isEncrypted()
Gets True if binded presentation is encrypted, otherwise False.
Read-only boolean
.
int getLoadFormat()
Gets format of the binded presentation.
Read-only LoadFormat
.
IDocumentProperties readDocumentProperties()
Gets document properties of binded presentation.
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");
void writeBindedPresentation(java.io.OutputStream stream)
Writes binded presentation to stream.
stream
- The stream must be seekable and writable.void writeBindedPresentation(java.lang.String file)
Writes binded presentation to file.
file
- Presentation file.