public class XpsOptions extends SaveOptions implements IXpsOptions
Provides options that control how a presentation is saved in XPS format.
The following example shows how to converting presentations to XPS using default settings.// Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS.pptx"); try { // Saving the presentation to XPS document pres.save("XPS_Output_Without_XPSOption_out.xps", SaveFormat.Xps); } finally { if (pres != null) pres.dispose(); }The following example shows how to converting presentations to XPS using custom settings.// Instantiate a Presentation object that represents a presentation file Presentation pres = new Presentation("Convert_XPS_Options.pptx"); try { // Instantiate the TiffOptions class XpsOptions options = new XpsOptions(); // Save MetaFiles as PNG options.setSaveMetafilesAsPng(true); // Save the presentation to XPS document pres.save("XPS_With_Options_out.xps", SaveFormat.Xps, options); } finally { if (pres != null) pres.dispose(); }
| Constructor and Description |
|---|
XpsOptions()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDrawSlidesFrame()
True to draw black frame around each slide.
|
boolean |
getSaveMetafilesAsPng()
True to convert all metafiles used in a presentation to the PNG images.
|
boolean |
getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not.
|
void |
setDrawSlidesFrame(boolean value)
True to draw black frame around each slide.
|
void |
setSaveMetafilesAsPng(boolean value)
True to convert all metafiles used in a presentation to the PNG images.
|
void |
setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not.
|
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 boolean getShowHiddenSlides()
Specifies whether the generated document should include hidden slides or not. Default is false.
getShowHiddenSlides in interface IXpsOptionspublic final void setShowHiddenSlides(boolean value)
Specifies whether the generated document should include hidden slides or not. Default is false.
setShowHiddenSlides in interface IXpsOptionspublic final boolean getSaveMetafilesAsPng()
True to convert all metafiles used in a presentation to the PNG images.
Read/write boolean.
getSaveMetafilesAsPng in interface IXpsOptionspublic final void setSaveMetafilesAsPng(boolean value)
True to convert all metafiles used in a presentation to the PNG images.
Read/write boolean.
setSaveMetafilesAsPng in interface IXpsOptionspublic final boolean getDrawSlidesFrame()
True to draw black frame around each slide.
Read/write boolean.
getDrawSlidesFrame in interface IXpsOptionspublic final void setDrawSlidesFrame(boolean value)
True to draw black frame around each slide.
Read/write boolean.
setDrawSlidesFrame in interface IXpsOptionsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.