public final class PptFormat extends DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo> implements IProtectableFormat, IInspectable<PptInspectionResult,PptInspectionOptions>
Represents Power Point format.
filePath, stream
Constructor and Description |
---|
PptFormat(InputStream input)
Initializes a new instance of the
PptFormat class. |
PptFormat(String fileName)
Initializes a new instance of the
PptFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes (reset) metadata.
|
void |
clearCustomProperties()
Removes all custom document properties in
PptFormat . |
PptMetadata |
getDocumentProperties()
Gets the document properties in
PptFormat . |
int |
getFileType()
Gets the file type like PPT, PPTX etc.
|
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, extractDocumentProperties, getDocumentInfo, getThumbnail, readDocumentPropertyByKey, readPropertyByName, setProperties
dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public PptFormat(String fileName)
Initializes a new instance of the PptFormat
class.
fileName
- Absolute path to the file.public PptFormat(InputStream input)
Initializes a new instance of the PptFormat
class.
input
- File stream.public int getType()
Gets document type.
Value: Document type.getType
in class FormatBase
public PptMetadata getDocumentProperties()
Gets the document properties in PptFormat
.
getDocumentProperties
in class DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo>
public int getFileType()
Gets the file type like PPT, PPTX etc.
Value: The file type.getFileType
in class DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo>
public final boolean isProtected()
Returns true if the document is encrypted and requires a password to open.
Value:true
if document is protected; otherwise, false
.isProtected
in interface IProtectableFormat
public void cleanMetadata()
Removes (reset) metadata. In some cases(Doc, Xls, Ppt, Pdf) metadata could not be deleted.
cleanMetadata
in class FormatBase
public void clearCustomProperties()
Removes all custom document properties in PptFormat
.
clearCustomProperties
in class DocumentFormat<PptMetadata,PptMetadataProperty,DocumentInfo>
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.com.aspose.ms.System.ArgumentNullException
- Options could not be null.Copyright © 2017. All rights reserved.