Property Getters/Setters Summary | ||
---|---|---|
function | getArea() | |
Gets or sets the area of the shapes will be saved . | ||
function | getDefaultFont() | |
function | setDefaultFont(value) | |
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. | ||
function | getEnlargePage() | |
function | setEnlargePage(value) | |
Specifies whether enlarge page . | ||
function | getExportGuideShapes() | |
function | setExportGuideShapes(value) | |
Defines whether need exporting the guide shapes or not. | ||
function | isExportComments() | |
function | setExportComments(value) | |
Defines whether need exporting the comments or not. | ||
function | getPageSize() | |
function | setPageSize(value) | |
Gets or sets the page size for the generated images.
Can be |
||
function | getSaveFormat() | |
function | setSaveFormat(value) | |
Specifies the format in which the document will be saved if this save options object is used. The value of the property is SaveFileFormat integer constant. | ||
function | getShapes() | |
function | setShapes(value) | |
Gets or sets shapes to render. Default count is 0. | ||
function | getWarningCallback() | |
function | setWarningCallback(value) | |
Gets or sets warning callback. |
Property Getters/Setters Detail |
---|
getPageSize/setPageSize : PageSize | |
function getPageSize() / function setPageSize(value) |
getShapes/setShapes : ShapeCollection | |
function getShapes() / function setShapes(value) |
Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("LoadSaveConvert.vsdx"); // create an instance SVG save options class options = new aspose.diagram.SVGSaveOptions(); shapes = options.getShapes(); // get shapes by page index and shape ID, and then add in the shape collection object shapes.add(diagram.getPages().get(0).getShapes().getShape(1)); shapes.add(diagram.getPages().get(0).getShapes().getShape(2)); // save Visio drawing diagram.save("out-SelectiveShapes_out.svg", options);
getArea : Float | |
function getArea() |
getExportGuideShapes/setExportGuideShapes : boolean | |
function getExportGuideShapes() / function setExportGuideShapes(value) |
isExportComments/setExportComments : boolean | |
function isExportComments() / function setExportComments(value) |
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 Image save options options = new aspose.diagram.ImageSaveOptions(aspose.diagram.SaveFileFormat.JPEG); // set export option of hidden Visio pages options.setExportHiddenPage(false); // set export option of comments options.setExportComments(false); diagram.save("out-ExportOfHiddenVisioPagesToImage.jpeg", options);
getEnlargePage/setEnlargePage : boolean | |
function getEnlargePage() / function setEnlargePage(value) |
getSaveFormat/setSaveFormat : Number | |
function getSaveFormat() / function setSaveFormat(value) |
getDefaultFont/setDefaultFont : String | |
function getDefaultFont() / function setDefaultFont(value) |
getWarningCallback/setWarningCallback : IWarningCallback | |
function getWarningCallback() / function setWarningCallback(value) |