XpsOptions

Inheritance: java.lang.Object, com.aspose.slides.SaveOptions

All Implemented Interfaces: com.aspose.slides.IXpsOptions

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();
 }

Constructors

ConstructorDescription
XpsOptions()Default constructor.

Methods

MethodDescription
getShowHiddenSlides()Specifies whether the generated document should include hidden slides or not.
setShowHiddenSlides(boolean value)Specifies whether the generated document should include hidden slides or not.
getSaveMetafilesAsPng()True to convert all metafiles used in a presentation to the PNG images.
setSaveMetafilesAsPng(boolean value)True to convert all metafiles used in a presentation to the PNG images.
getDrawSlidesFrame()True to draw black frame around each slide.
setDrawSlidesFrame(boolean value)True to draw black frame around each slide.

XpsOptions()

public XpsOptions()

Default constructor.

getShowHiddenSlides()

public final boolean getShowHiddenSlides()

Specifies whether the generated document should include hidden slides or not. Default is false.

Returns: boolean

setShowHiddenSlides(boolean value)

public final void setShowHiddenSlides(boolean value)

Specifies whether the generated document should include hidden slides or not. Default is false.

Parameters:

ParameterTypeDescription
valueboolean

getSaveMetafilesAsPng()

public final boolean getSaveMetafilesAsPng()

True to convert all metafiles used in a presentation to the PNG images. Read/write boolean.


Default is true.

Returns: boolean

setSaveMetafilesAsPng(boolean value)

public final void setSaveMetafilesAsPng(boolean value)

True to convert all metafiles used in a presentation to the PNG images. Read/write boolean.


Default is true.

Parameters:

ParameterTypeDescription
valueboolean

getDrawSlidesFrame()

public final boolean getDrawSlidesFrame()

True to draw black frame around each slide. Read/write boolean.


Default is false.

Returns: boolean

setDrawSlidesFrame(boolean value)

public final void setDrawSlidesFrame(boolean value)

True to draw black frame around each slide. Read/write boolean.


Default is false.

Parameters:

ParameterTypeDescription
valueboolean