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