PdfSaveOptions
Inheritance: java.lang.Object, com.aspose.page.SaveOptions
public class PdfSaveOptions extends SaveOptions
This class contains options necessary for managing conversion process.
Constructors
Constructor | Description |
---|---|
PdfSaveOptions() | Initialize new instance of PdfSaveOptions class with default values for flags suppressErrors (true) and debug (false). |
PdfSaveOptions(boolean supressErrors) | Initialize new instance of PdfSaveOptions class with default values for flag debug (false). |
PdfSaveOptions(Dimension size) | Initialize new instance of PdfSaveOptions class with the size of the page. |
PdfSaveOptions(boolean supressErrors, Dimension size) | Initialize new instance of PdfSaveOptions class with default values for flag debug (false) and size of the page. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getAdditionalFontsFolders() | Returns additional fonts folders where converter should find fonts for input document. |
getClass() | |
getExceptions() | Returns a list of non-critical errors. |
getJpegQualityLevel() | Returns the value specifying the level of compression for an image. |
getSize() | Gets a size of the page or image. |
hashCode() | |
isDebug() | Gets the flag that allows output of warnings and messages during conversion. |
isSupressErrors() | Returns a value indicating whether errors will be suppressed during conversion. |
notify() | |
notifyAll() | |
setAdditionalFontsFolders(String[] fontsFolders) | Specifies additional fonts folders where converter should find fonts for input document. |
setDebug(boolean debug) | Specifies the flag that allows output of warnings and messages during conversion. |
setJpegQualityLevel(int value) | Sets the value specifying the level of compression for an image. |
setSize(Dimension size) | Specifies a size of the page or image. |
setSupressErrors(boolean supressErrors) | Specifies the flag that indicates whether errors will be suppressed during conversion. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
PdfSaveOptions()
public PdfSaveOptions()
Initialize new instance of PdfSaveOptions class with default values for flags suppressErrors (true) and debug (false).
PdfSaveOptions(boolean supressErrors)
public PdfSaveOptions(boolean supressErrors)
Initialize new instance of PdfSaveOptions class with default values for flag debug (false).
Parameters:
Parameter | Type | Description |
---|---|---|
supressErrors | boolean | If true conversion will be continued despite of non-critical errors. |
PdfSaveOptions(Dimension size)
public PdfSaveOptions(Dimension size)
Initialize new instance of PdfSaveOptions class with the size of the page.
Parameters:
Parameter | Type | Description |
---|---|---|
size | java.awt.Dimension | The size of the page. |
PdfSaveOptions(boolean supressErrors, Dimension size)
public PdfSaveOptions(boolean supressErrors, Dimension size)
Initialize new instance of PdfSaveOptions class with default values for flag debug (false) and size of the page.
Parameters:
Parameter | Type | Description |
---|---|---|
supressErrors | boolean | If true conversion will be continued despite of non-critical errors. |
size | java.awt.Dimension | The size of the page. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
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.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getExceptions()
public List<Exception> getExceptions()
Returns a list of non-critical errors.
Returns: java.util.List<java.lang.Exception> - Exceptions list
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.
getSize()
public Dimension getSize()
Gets a size of the page or image.
Returns: java.awt.Dimension - A size of the page or image.
hashCode()
public native int hashCode()
Returns: int
isDebug()
public boolean isDebug()
Gets the flag that allows output of warnings and messages during conversion.
Returns: boolean - debug value.
isSupressErrors()
public boolean isSupressErrors()
Returns a value indicating whether errors will be suppressed during conversion.
Returns: boolean - boolean value
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
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. |
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. |
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. |
setSize(Dimension size)
public void setSize(Dimension size)
Specifies a size of the page or image.
Parameters:
Parameter | Type | Description |
---|---|---|
size | java.awt.Dimension | Size of the page or image. |
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. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |