PsSaveOptions

Inheritance: java.lang.Object, com.aspose.page.SaveOptions

public class PsSaveOptions extends SaveOptions

This class contains options necessary for managing conversion process.

Constructors

ConstructorDescription
PsSaveOptions()Initialize new instance of PdfSaveOptions class with default values for flags suppressErrors (true) and debug (false).
PsSaveOptions(boolean supressErrors)Initialize new instance of PdfSaveOptions class with default values for flag debug (false).

Methods

MethodDescription
equals(Object arg0)
getAdditionalFontsFolders()Returns additional fonts folders where converter should find fonts for input document.
getBackgroundColor()
getClass()
getEmbedFontsAs()
getExceptions()Returns a list of non-critical errors.
getJpegQualityLevel()Returns the value specifying the level of compression for an image.
getMargins()
getPageSize()
getSaveFormat()
getSize()Gets a size of the page or image.
hashCode()
isDebug()Gets the flag that allows output of warnings and messages during conversion.
isEmbedFonts()Indicates whether to embed used fonts in PS document
isSupressErrors()Returns a value indicating whether errors will be suppressed during conversion.
isTransparent()
notify()
notifyAll()
setAdditionalFontsFolders(String[] fontsFolders)Specifies additional fonts folders where converter should find fonts for input document.
setBackgroundColor(Color backgroundColor)
setDebug(boolean debug)Specifies the flag that allows output of warnings and messages during conversion.
setEmbedFonts(boolean embedFonts)Specifies whether to embed used fonts in PS document
setEmbedFontsAs(String embedFontsAs)Specify font type in which to embed fonts in PS document
setJpegQualityLevel(int value)Sets the value specifying the level of compression for an image.
setMargins(Insets margins)
setPageSize(Dimension pageSize)
setSaveFormat(PsSaveFormat saveFormat)Specify save format of resulting file
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.
setTransparent(boolean transparent)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PsSaveOptions()

public PsSaveOptions()

Initialize new instance of PdfSaveOptions class with default values for flags suppressErrors (true) and debug (false).

PsSaveOptions(boolean supressErrors)

public PsSaveOptions(boolean supressErrors)

Initialize new instance of PdfSaveOptions class with default values for flag debug (false).

Parameters:

ParameterTypeDescription
supressErrorsbooleanIf true conversion will be continued despite of non-critical errors.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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.

getBackgroundColor()

public Color getBackgroundColor()

Returns: java.awt.Color - the background color

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEmbedFontsAs()

public String getEmbedFontsAs()

Returns: java.lang.String - a type of font in which to embed fonts in PS document

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.

getMargins()

public Insets getMargins()

Returns: java.awt.Insets - the margins of the page

getPageSize()

public Dimension getPageSize()

Returns: java.awt.Dimension - the size of the page

getSaveFormat()

public PsSaveFormat getSaveFormat()

Returns: PsSaveFormat - save format of resulting file

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.

isEmbedFonts()

public boolean isEmbedFonts()

Indicates whether to embed used fonts in PS document

Returns: boolean - value of embedFonts flag

isSupressErrors()

public boolean isSupressErrors()

Returns a value indicating whether errors will be suppressed during conversion.

Returns: boolean - boolean value

isTransparent()

public boolean isTransparent()

Returns: boolean - Indicates if background is transparent

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:

ParameterTypeDescription
fontsFoldersjava.lang.String[]An array of fonts folders.

setBackgroundColor(Color backgroundColor)

public void setBackgroundColor(Color backgroundColor)

Parameters:

ParameterTypeDescription
backgroundColorjava.awt.ColorSpecifies background color

setDebug(boolean debug)

public void setDebug(boolean debug)

Specifies the flag that allows output of warnings and messages during conversion.

Parameters:

ParameterTypeDescription
debugbooleanBoolean value.

setEmbedFonts(boolean embedFonts)

public void setEmbedFonts(boolean embedFonts)

Specifies whether to embed used fonts in PS document

Parameters:

ParameterTypeDescription
embedFontsbooleanembedFonts flag

setEmbedFontsAs(String embedFontsAs)

public void setEmbedFontsAs(String embedFontsAs)

Specify font type in which to embed fonts in PS document

Parameters:

ParameterTypeDescription
embedFontsAsjava.lang.StringFont type

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:

ParameterTypeDescription
valueintThe value specifying the level of compression for an image.

setMargins(Insets margins)

public void setMargins(Insets margins)

Parameters:

ParameterTypeDescription
marginsjava.awt.InsetsSpecifies the margins of the page

setPageSize(Dimension pageSize)

public void setPageSize(Dimension pageSize)

Parameters:

ParameterTypeDescription
pageSizejava.awt.DimensionSpecifies the size of the page

setSaveFormat(PsSaveFormat saveFormat)

public void setSaveFormat(PsSaveFormat saveFormat)

Specify save format of resulting file

Parameters:

ParameterTypeDescription
saveFormatPsSaveFormatFormat of resulting file

setSize(Dimension size)

public void setSize(Dimension size)

Specifies a size of the page or image.

Parameters:

ParameterTypeDescription
sizejava.awt.DimensionSize 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:

ParameterTypeDescription
supressErrorsbooleanBoolean value.

setTransparent(boolean transparent)

public void setTransparent(boolean transparent)

Parameters:

ParameterTypeDescription
transparentbooleanSpecifies if background is transparent

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int