com.aspose.diagram

Class DiagramSaveOptions

  • java.lang.Object
public class DiagramSaveOptions 
extends SaveOptions

Can be used to specify additional options when saving a diagram into Visio (VDX\VSX) format.
At the moment provides only the SaveFormat property, but in the future will have other options added.

Constructor Summary
DiagramSaveOptions()
Initializes a new instance of this class that can be used to save a diagram in the VDX format.
DiagramSaveOptions(intsaveFormat)
Initializes a new instance of this class that can be used to save a diagram in the VDX or VSX format.
 
Property Getters/Setters Summary
booleangetAutoFitPageToDrawingContent()
void
           Defines whether need enlarge page to fit drawing content or not.
java.lang.StringgetDefaultFont()
void
setDefaultFont(java.lang.Stringvalue)
           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.
intgetSaveFormat()
void
setSaveFormat(intvalue)
           Specifies the format in which the rendered diagram will be saved if this save options object is used. Can be SaveFileFormat or SaveFileFormat. The value of the property is SaveFileFormat integer constant.
IWarningCallbackgetWarningCallback()
void
           Gets or sets warning callback.
 

    • Constructor Detail

      • DiagramSaveOptions

        public DiagramSaveOptions()
                           throws java.lang.Exception
        Initializes a new instance of this class that can be used to save a diagram in the VDX format.
      • DiagramSaveOptions

        public DiagramSaveOptions(int saveFormat)
                           throws java.lang.Exception
        Initializes a new instance of this class that can be used to save a diagram in the VDX or VSX format.
        Parameters:
        saveFormat - A SaveFileFormat value.
    • Property Getters/Setters Detail

      • getSaveFormat/setSaveFormat

        public int getSaveFormat() / public void setSaveFormat(int value)
        
        Specifies the format in which the rendered diagram will be saved if this save options object is used. Can be SaveFileFormat or SaveFileFormat. The value of the property is SaveFileFormat integer constant.
      • getAutoFitPageToDrawingContent/setAutoFitPageToDrawingContent

        public boolean getAutoFitPageToDrawingContent() / public void setAutoFitPageToDrawingContent(boolean value)
        
        Defines whether need enlarge page to fit drawing content or not. Default value is false.
      • getDefaultFont/setDefaultFont

        public java.lang.String getDefaultFont() / public void setDefaultFont(java.lang.String 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.
      • getWarningCallback/setWarningCallback

        public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
        
        Gets or sets warning callback.