PptxOptions
Inheritance: java.lang.Object, com.aspose.slides.SaveOptions
All Implemented Interfaces: com.aspose.slides.IPptxOptions, java.lang.Cloneable
public final class PptxOptions extends SaveOptions implements IPptxOptions, Cloneable
Represents options for saving OpenXml presentations (PPTX, PPSX, POTX, PPTM, PPSM, POTM).
Constructors
Constructor | Description |
---|---|
PptxOptions() | Creates new instance of PptxOptions |
Methods
Method | Description |
---|---|
getConformance() | Specifies the conformance class to which the Presentation document conforms. |
setConformance(int value) | Specifies the conformance class to which the Presentation document conforms. |
getZip64Mode() | Specifies whether the ZIP64 format is used for the Presentation document. |
setZip64Mode(int value) | Specifies whether the ZIP64 format is used for the Presentation document. |
getRefreshThumbnail() | Specifies whether the presentation thumbnail will be refreshed. |
setRefreshThumbnail(boolean value) | Specifies whether the presentation thumbnail will be refreshed. |
PptxOptions()
public PptxOptions()
Creates new instance of PptxOptions
getConformance()
public final int getConformance()
Specifies the conformance class to which the Presentation document conforms. Default value is Conformance.Ecma376_2006
Returns: int
setConformance(int value)
public final void setConformance(int value)
Specifies the conformance class to which the Presentation document conforms. Default value is Conformance.Ecma376_2006
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getZip64Mode()
public 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(); }
Returns: int
setZip64Mode(int value)
public 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(); }
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getRefreshThumbnail()
public 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.
Returns: boolean
setRefreshThumbnail(boolean value)
public 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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |