new XPSSaveOptions()

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

Example

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");
diagram = new aspose.diagram.Diagram("Pages.vsdx");
// get a particular page
page = diagram.getPages().getPage("Flow 2");
// set Visio page visiblity
page.getPageSheet().getPageProps().getUIVisibility().setValue(aspose.diagram.BOOL.TRUE);
// initialize XPS save options
options = new aspose.diagram.XPSSaveOptions();
// set export option of hidden Visio pages
options.setExportHiddenPage(false);
diagram.save("out-ExportOfHiddenVisioPagesToXPS.xps", options);

Methods

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.

getExportHiddenPage()

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

getPageCount()

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

getPageIndex()

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

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.

getSaveFormat()

Specifies the format in which the rendered diagram pages will be saved if this save options object is used. Can be SaveFileFormat only. The value of the property is SaveFileFormat integer constant.

getWarningCallback()

Gets or sets warning callback.

setDefaultFont()

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.

setExportHiddenPage()

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

setPageCount()

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

setPageIndex()

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

setSaveForegroundPagesOnly()

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.

setSaveFormat()

Specifies the format in which the rendered diagram pages will be saved if this save options object is used. Can be SaveFileFormat only. The value of the property is SaveFileFormat integer constant.

setWarningCallback()

Gets or sets warning callback.