public class PsConverterOptions extends Object implements IPluginOptions, IDataContainer, ISaveInstruction
Represents base class of options for PsConverter plugin.
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSource(IDataSource dataSource)
Adds new data source to the PsConverter plugin data collection.
|
void |
addSaveDataSource(IDataSource saveDataSource)
Adds new data source to the PsConverterOptions plugin data collection.
|
String[] |
getAdditionalFontsFolders()
Returns additional fonts folders where converter should find fonts for input document.
|
List<IDataSource> |
getDataCollection()
Returns PsConverterOptions plugin data collection.
|
List<Exception> |
getExceptions()
Returns a list of non-critical errors.
|
int |
getJpegQualityLevel()
Returns the value specifying the level of compression for an image.
|
String |
getOperationName()
Returns operation name.
|
List<IDataSource> |
getSaveTargetsCollection()
Gets collection of added targets for saving operation results.
|
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 final List<IDataSource> getDataCollection()
Returns PsConverterOptions plugin data collection.
getDataCollection in interface IDataContainerpublic final void addDataSource(IDataSource dataSource)
Adds new data source to the PsConverter plugin data collection.
addDataSource in interface IDataContainerdataSource - Data source to add.public final List<IDataSource> getSaveTargetsCollection()
Gets collection of added targets for saving operation results.
getSaveTargetsCollection in interface ISaveInstructionpublic final void addSaveDataSource(IDataSource saveDataSource)
Adds new data source to the PsConverterOptions plugin data collection.
addSaveDataSource in interface ISaveInstructionsaveDataSource - Data source (file or stream) for saving operation results.public String getOperationName()
Returns operation name.
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.Copyright © 2025 Aspose. All Rights Reserved.