public final class PptxOptions extends SaveOptions implements IPptxOptions, java.lang.Cloneable
Represents options for saving OpenXml presentations (PPTX, PPSX, POTX, PPTM, PPSM, POTM).
| Constructor and Description |
|---|
PptxOptions()
Creates new instance of PptxOptions
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConformance()
Specifies the conformance class to which the Presentation document conforms.
|
boolean |
getRefreshThumbnail()
Specifies whether the presentation thumbnail will be refreshed.
|
int |
getZip64Mode()
Specifies whether the ZIP64 format is used for the Presentation document.
|
void |
setConformance(int value)
Specifies the conformance class to which the Presentation document conforms.
|
void |
setRefreshThumbnail(boolean value)
Specifies whether the presentation thumbnail will be refreshed.
|
void |
setZip64Mode(int value)
Specifies whether the ZIP64 format is used for the Presentation document.
|
getDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultRegularFont, getGradientStyle, getProgressCallback, getSkipJavaScriptLinks, getWarningCallback, setDefaultRegularFont, setGradientStyle, setProgressCallback, setSkipJavaScriptLinks, setWarningCallbackpublic final int getConformance()
Specifies the conformance class to which the Presentation document conforms.
Default value is Conformance.Ecma376_2006
getConformance in interface IPptxOptionspublic final void setConformance(int value)
Specifies the conformance class to which the Presentation document conforms.
Default value is Conformance.Ecma376_2006
setConformance in interface IPptxOptionspublic final int getZip64Mode()
Specifies whether the ZIP64 format is used for the Presentation document.
The default value is Zip64Mode.IfNecessary
Example:Presentation pres = new Presentation("demo.pptx"); try { PptxOptions pptxOptions = new PptxOptions(); pptxOptions.setZip64Mode(Zip64Mode.Always); pres.save("demo-zip64.pptx", SaveFormat.Pptx, pptxOptions); } finally { if (pres != null) pres.dispose(); }
getZip64Mode in interface IPptxOptionspublic final void setZip64Mode(int value)
Specifies whether the ZIP64 format is used for the Presentation document.
The default value is Zip64Mode.IfNecessary
Example:Presentation pres = new Presentation("demo.pptx"); try { PptxOptions pptxOptions = new PptxOptions(); pptxOptions.setZip64Mode(Zip64Mode.Always); pres.save("demo-zip64.pptx", SaveFormat.Pptx, pptxOptions); } finally { if (pres != null) pres.dispose(); }
setZip64Mode in interface IPptxOptionspublic final boolean getRefreshThumbnail()
Specifies whether the presentation thumbnail will be refreshed. Read/write boolean. Default value is true.
Example:Presentation pres = new Presentation("demo.pptx"); try { PptxOptions pptxOptions = new PptxOptions(); pptxOptions.setRefreshThumbnail(false); pres.save("result_with_old_thumbnail.pptx", SaveFormat.Pptx, pptxOptions); } finally { if (pres != null) pres.dispose(); }
When the option value is true, the new thumbnail will be generated.
When the option value is false, the current thumbnail will be saved as is.
getRefreshThumbnail in interface IPptxOptionspublic final void setRefreshThumbnail(boolean value)
Specifies whether the presentation thumbnail will be refreshed. Read/write boolean. Default value is true.
Example:Presentation pres = new Presentation("demo.pptx"); try { PptxOptions pptxOptions = new PptxOptions(); pptxOptions.setRefreshThumbnail(false); pres.save("result_with_old_thumbnail.pptx", SaveFormat.Pptx, pptxOptions); } finally { if (pres != null) pres.dispose(); }
When the option value is true, the new thumbnail will be generated.
When the option value is false, the current thumbnail will be saved as is.
setRefreshThumbnail in interface IPptxOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.