com.aspose.diagram

Class SaveOptions

  • java.lang.Object
    • com.aspose.diagram.SaveOptions
This is an abstract base class for classes that allow the user to specify additional options when saving a diagram into a particular format.
An instance of the SaveOptions class or any derived class is passed to the stream Save or string Save overloads for the user to define custom options when saving a document.

Property Getters/Setters Summary
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 document will be saved if this save options object is used. The value of the property is SaveFileFormat integer constant.
IWarningCallbackgetWarningCallback()
void
           Gets or sets warning callback.
 
Method Summary
static SaveOptionscreateSaveOptions(int saveFormat)
Creates a save options object of a class suitable for the specified save format.
 

    • Property Getters/Setters Detail

      • getSaveFormat/setSaveFormat

        public int getSaveFormat() / public void setSaveFormat(int 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.
      • 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.
    • Method Detail

      • createSaveOptions

        public static SaveOptions createSaveOptions(int saveFormat)
                                                 throws java.lang.Exception
        Creates a save options object of a class suitable for the specified save format.
        Parameters:
        saveFormat - A SaveFileFormat value. The SaveFileFormat for which to create a save options object.
        Returns:
        An object of a class that derives from SaveOptions.