public final class PptFormat extends DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo> implements IProtectableFormat, IInspectable<PptInspectionResult,PptInspectionOptions>
Represents a PowerPoint presentation.
Constructor and Description |
---|
PptFormat(InputStream input)
Initializes a new instance of the
PptFormat class. |
PptFormat(InputStream input,
LoadOptions loadOptions)
Initializes a new instance of the
PptFormat class. |
PptFormat(String fileName)
Initializes a new instance of the
PptFormat class. |
PptFormat(String fileName,
LoadOptions loadOptions)
Initializes a new instance of the
PptFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes metadata found in the document.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
int |
getType()
Gets the type of the loaded file.
|
PptInspectionResult |
inspectDocument()
Inspects the document and returns user comments and hidden slides.
|
boolean |
isProtected()
Returns true if the document is encrypted and requires a password to open.
|
void |
removeHiddenData(PptInspectionOptions options)
Removes the hidden data.
|
clearBuiltInProperties, clearCustomProperties, extractDocumentProperties, getDocumentInfo, getDocumentProperties, getFileType, getThumbnail, readDocumentPropertyByKey, readPropertyByName, readThumbnail, setProperties
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public PptFormat(String fileName)
Initializes a new instance of the PptFormat
class.
fileName
- A string that contains the full name of the file from which to create a PptFormat
instance.public PptFormat(String fileName, LoadOptions loadOptions)
Initializes a new instance of the PptFormat
class.
fileName
- A string that contains the full name of the file from which to create a PptFormat
instance.loadOptions
- Additional options to use when loading a document.public PptFormat(InputStream input)
Initializes a new instance of the PptFormat
class.
input
- A stream that contains the data for this PptFormat
.public PptFormat(InputStream input, LoadOptions loadOptions)
Initializes a new instance of the PptFormat
class.
input
- A stream that contains the data for this PptFormat
.loadOptions
- Additional options to use when loading a document.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final boolean isProtected()
Returns true if the document is encrypted and requires a password to open.
isProtected
in interface IProtectableFormat
true
if the document is protected; otherwise, false
.public void cleanMetadata()
Removes metadata found in the document.
cleanMetadata
in class FormatBase
public final PptInspectionResult inspectDocument()
Inspects the document and returns user comments and hidden slides.
inspectDocument
in interface IInspectable<PptInspectionResult,PptInspectionOptions>
PptInspectionResult
.public final void removeHiddenData(PptInspectionOptions options)
Removes the hidden data.
removeHiddenData
in interface IInspectable<PptInspectionResult,PptInspectionOptions>
options
- The inspection options.protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.Copyright © 2019. All rights reserved.