com.aspose.page

Class SaveOptions

    • Constructor Summary

      Constructors 
      Constructor and Description
      SaveOptions()
      Initialize new SaveOptions instance with default values for flags suppressErrors (true) and debug (false).
      SaveOptions(boolean supressErrors)
      Initialize new SaveOptions instance with default value for flag debug (false).
    • Constructor Detail

      • SaveOptions

        public SaveOptions()

        Initialize new SaveOptions instance with default values for flags suppressErrors (true) and debug (false).

      • SaveOptions

        public SaveOptions(boolean supressErrors)

        Initialize new SaveOptions instance with default value for flag debug (false).

        Parameters:
        supressErrors - If true conversion will be continued despite of non-critical errors.
    • Method Detail

      • isSupressErrors

        public boolean isSupressErrors()

        Returns a value indicating whether errors will be suppressed during conversion.

        Returns:
        boolean value
      • setSupressErrors

        public void setSupressErrors(boolean supressErrors)

        Specifies the flag that indicates whether errors will be suppressed during conversion.

        Parameters:
        supressErrors - Boolean value.
      • getExceptions

        public List<Exception> getExceptions()

        Returns a list of non-critical errors.

        Returns:
        Exceptions list
      • isDebug

        public boolean isDebug()

        Gets the flag that allows output of warnings and messages during conversion.

        Returns:
        debug value.
      • setDebug

        public void setDebug(boolean debug)

        Specifies the flag that allows output of warnings and messages during conversion.

        Parameters:
        debug - Boolean value.
      • getAdditionalFontsFolders

        public String[] getAdditionalFontsFolders()

        Returns additional fonts folders where converter should find fonts for input document. Default folder is standard fonts folder where OS finds fonts for internal needs.

        Returns:
        An array of fonts folders.
      • setAdditionalFontsFolders

        public void setAdditionalFontsFolders(String[] fontsFolders)

        Specifies additional fonts folders where converter should find fonts for input document. Default folder is standard fonts folder where OS finds fonts for internal needs.

        Parameters:
        fontsFolders - An array of fonts folders.
      • getJpegQualityLevel

        public int getJpegQualityLevel()

        Returns the value specifying the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.

        Returns:
        The value specifying the level of compression for an image.
      • setJpegQualityLevel

        public void setJpegQualityLevel(int value)

        Sets the value specifying the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.

        Parameters:
        value - The value specifying the level of compression for an image.