SaveOptions
Inheritance: java.lang.Object
public class SaveOptions
This class contains options necessary for managing conversion process.
Constructors
Constructor | 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). |
Methods
Method | Description |
---|---|
isSupressErrors() | Returns a value indicating whether errors will be suppressed during conversion. |
setSupressErrors(boolean supressErrors) | Specifies the flag that indicates whether errors will be suppressed during conversion. |
getExceptions() | Returns a list of non-critical errors. |
isDebug() | Gets the flag that allows output of warnings and messages during conversion. |
setDebug(boolean debug) | Specifies the flag that allows output of warnings and messages during conversion. |
getAdditionalFontsFolders() | Returns additional fonts folders where converter should find fonts for input document. |
setAdditionalFontsFolders(String[] fontsFolders) | Specifies additional fonts folders where converter should find fonts for input document. |
getJpegQualityLevel() | Returns the value specifying the level of compression for an image. |
setJpegQualityLevel(int value) | Sets the value specifying the level of compression for an image. |
SaveOptions()
public SaveOptions()
Initialize new SaveOptions instance with default values for flags ``` suppressErrors ``` (true) and ``` debug ``` (false).
SaveOptions(boolean supressErrors)
public SaveOptions(boolean supressErrors)
Initialize new SaveOptions instance with default value for flag ``` debug ``` (false).
Parameters:
Parameter | Type | Description |
---|---|---|
supressErrors | boolean | If true conversion will be continued despite of non-critical errors. |
isSupressErrors()
public boolean isSupressErrors()
Returns a value indicating whether errors will be suppressed during conversion.
Returns: boolean - boolean value
setSupressErrors(boolean supressErrors)
public void setSupressErrors(boolean supressErrors)
Specifies the flag that indicates whether errors will be suppressed during conversion.
Parameters:
Parameter | Type | Description |
---|---|---|
supressErrors | boolean | Boolean value. |
getExceptions()
public List<Exception> getExceptions()
Returns a list of non-critical errors.
Returns: java.util.List<java.lang.Exception> - Exceptions list
isDebug()
public boolean isDebug()
Gets the flag that allows output of warnings and messages during conversion.
Returns: boolean - debug value.
setDebug(boolean debug)
public void setDebug(boolean debug)
Specifies the flag that allows output of warnings and messages during conversion.
Parameters:
Parameter | Type | Description |
---|---|---|
debug | boolean | 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: java.lang.String[] - An array of fonts folders.
setAdditionalFontsFolders(String[] fontsFolders)
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:
Parameter | Type | Description |
---|---|---|
fontsFolders | java.lang.String[] | 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: int - The value specifying the level of compression for an image.
setJpegQualityLevel(int value)
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:
Parameter | Type | Description |
---|---|---|
value | int | The value specifying the level of compression for an image. |