public final class PptFormat extends DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo> implements IProtectableFormat, IInspectable<PptInspectionResult,PptInspectionOptions>
Represents Power Point format.
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 (reset) metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
int |
getType()
Gets document type.
|
PptInspectionResult |
inspectDocument()
Inspects the document and returns hidden 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
- The absolute path to the file.public PptFormat(String fileName, LoadOptions loadOptions)
Initializes a new instance of the PptFormat
class.
fileName
- The absolute path to the file.loadOptions
- Additional options to use when loading the document.public PptFormat(InputStream input)
Initializes a new instance of the PptFormat
class.
input
- The stream containing the file.public PptFormat(InputStream input, LoadOptions loadOptions)
Initializes a new instance of the PptFormat
class.
input
- The stream containing the file.loadOptions
- Additional options to use when loading the document.public int getType()
Gets document type.
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 document is protected; otherwise, false
.public void cleanMetadata()
Removes (reset) metadata. In some cases(Doc, Xls, Ppt, Pdf) metadata could not be deleted.
cleanMetadata
in class FormatBase
public final PptInspectionResult inspectDocument()
Inspects the document and returns hidden 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.ArgumentNullException
- Options could not be null.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.