XPSSaveOptions

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

public class XPSSaveOptions extends SaveOptions

Allows to specify additional options when rendering diagram pages to XPS.

Constructors

Constructor Description
XPSSaveOptions() Initializes a new instance of this class that can be used to save a document in the Aspose.Diagram.SaveFileFormat format.

Methods

Method Description
createSaveOptions(int saveFormat) Creates a save options object of a class suitable for the specified save format.
equals(Object arg0)
getClass()
getDefaultFont() When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS.
getExportHiddenPage() Defines whether need exporting the hidden page or not.
getPageCount() the number of pages to render in XPS.
getPageIndex() the 0-based index of the first page to render.
getSaveForegroundPagesOnly() Specifies whether all pages will be saved in image or only foreground.
getSaveFormat() Specifies the format in which the rendered diagram pages will be saved if this save options object is used.
getWarningCallback() warning callback.
hashCode()
notify()
notifyAll()
setDefaultFont(String value) For the description of this property, please see getDefaultFont()
setExportHiddenPage(boolean value) For the description of this property, please see getExportHiddenPage()
setPageCount(int value) For the description of this property, please see getPageCount()
setPageIndex(int value) For the description of this property, please see getPageIndex()
setSaveForegroundPagesOnly(boolean value) For the description of this property, please see getSaveForegroundPagesOnly()
setSaveFormat(int value) For the description of this property, please see getSaveFormat()
setWarningCallback(IWarningCallback value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XPSSaveOptions()

public XPSSaveOptions()

Initializes a new instance of this class that can be used to save a document in the Aspose.Diagram.SaveFileFormat format.

createSaveOptions(int saveFormat)

public static SaveOptions createSaveOptions(int saveFormat)

Creates a save options object of a class suitable for the specified save format.

Parameters:

Parameter Type Description
saveFormat int The Aspose.Diagram.SaveFileFormat for which to create a save options object.

Returns: SaveOptions - An object of a class that derives from SaveOptions.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDefaultFont()

public String getDefaultFont()

When characters in the diagram are unicode and not be set with correct font value or the font is not installed locally, they may appear as block in pdf, image or XPS. Set the DefaultFont such as MingLiu or MS Gothic to show these characters.

Returns: java.lang.String

getExportHiddenPage()

public boolean getExportHiddenPage()

Defines whether need exporting the hidden page or not. Default value is true.

Returns: boolean

getPageCount()

public int getPageCount()

the number of pages to render in XPS. Default is MaxValue which means all pages of the diagram will be rendered.

Returns: int

getPageIndex()

public int getPageIndex()

the 0-based index of the first page to render. Default is 0.

Returns: int

getSaveForegroundPagesOnly()

public boolean getSaveForegroundPagesOnly()

Specifies whether all pages will be saved in image or only foreground. If true - rendered only foreground pages(with background if present). If false - rendered foreground pages(with background if present) after that empty background pages. Can return true only when PageCount > 1. The default value is false.

Returns: boolean

getSaveFormat()

public int getSaveFormat()

Specifies the format in which the rendered diagram pages will be saved if this save options object is used. Can be Aspose.Diagram.SaveFileFormat only.

Returns: int

getWarningCallback()

public IWarningCallback getWarningCallback()

warning callback.

Returns: IWarningCallback

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDefaultFont(String value)

public void setDefaultFont(String value)

For the description of this property, please see getDefaultFont()

Parameters:

Parameter Type Description
value java.lang.String

setExportHiddenPage(boolean value)

public void setExportHiddenPage(boolean value)

For the description of this property, please see getExportHiddenPage()

Parameters:

Parameter Type Description
value boolean

setPageCount(int value)

public void setPageCount(int value)

For the description of this property, please see getPageCount()

Parameters:

Parameter Type Description
value int

setPageIndex(int value)

public void setPageIndex(int value)

For the description of this property, please see getPageIndex()

Parameters:

Parameter Type Description
value int

setSaveForegroundPagesOnly(boolean value)

public void setSaveForegroundPagesOnly(boolean value)

For the description of this property, please see getSaveForegroundPagesOnly()

Parameters:

Parameter Type Description
value boolean

setSaveFormat(int value)

public void setSaveFormat(int value)

For the description of this property, please see getSaveFormat()

Parameters:

Parameter Type Description
value int

setWarningCallback(IWarningCallback value)

public void setWarningCallback(IWarningCallback value)

Parameters:

Parameter Type Description
value IWarningCallback

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int