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). |
SaveOptions(boolean supressErrors,
Dimension size)
Initialize new SaveOptions instance with default value for flag
debug (false) and with specified size. |
SaveOptions(Dimension size)
Initializes new instance of
SaveOptions with specified size. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAdditionalFontsFolders()
Returns additional fonts folders where converter should find fonts for input document.
|
boolean |
getConvertFontsToTTF()
Gets the flag showing if it is necessary to save non-TrueType fonts to TTF.
|
List<Exception> |
getExceptions()
Returns a list of non-critical errors.
|
int |
getJpegQualityLevel()
Returns the value specifying the level of compression for an image.
|
Dimension |
getSize()
Gets a size of the page or 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 |
setConvertFontsToTTF(boolean value)
Specifies whether to save non-TrueType fonts to TTF.
|
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 |
setSize(Dimension size)
Specifies a size of the page or 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 SaveOptions(Dimension size)
Initializes new instance of SaveOptions with specified size.
size - The size.public SaveOptions(boolean supressErrors,
Dimension size)
Initialize new SaveOptions instance with default value for flag debug (false) and with specified size.
supressErrors - If true conversion will be continued despite of non-critical errors.size - The size.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 Dimension getSize()
Gets a size of the page or image.
public void setSize(Dimension size)
Specifies a size of the page or image.
size - Size of the page or image.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 boolean getConvertFontsToTTF()
Gets the flag showing if it is necessary to save non-TrueType fonts to TTF.
public void setConvertFontsToTTF(boolean value)
Specifies whether to save non-TrueType fonts to TTF. It significantly decreases the volume of the resulting document in PS to PDF conversion and increases the speed of conversion of PS files with a large quantity of text in non-TrueType fonts to any output format. However there is small vertical shift of text when converting PostSctipt file to image.
value - The flag 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.Copyright © 2025 Aspose. All Rights Reserved.