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
getPageSize()
setPageSize(Dimension pageSize)
getMargins()
setMargins(Insets margins)
getBackgroundColor()
setBackgroundColor(Color backgroundColor)
isTransparent()
setTransparent(boolean transparent)
isEmbedFonts()Indicates whether to embed used fonts in PS document
setEmbedFonts(boolean embedFonts)Specifies whether to embed used fonts in PS document
getEmbedFontsAs()
setEmbedFontsAs(String embedFontsAs)Specify font type in which to embed fonts in PS document
getSaveFormat()
setSaveFormat(PsSaveFormat saveFormat)Specify save format of resulting file

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.

getPageSize()

public Dimension getPageSize()

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

setPageSize(Dimension pageSize)

public void setPageSize(Dimension pageSize)

Parameters:

ParameterTypeDescription
pageSizejava.awt.DimensionSpecifies the size of the page

getMargins()

public Insets getMargins()

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

setMargins(Insets margins)

public void setMargins(Insets margins)

Parameters:

ParameterTypeDescription
marginsjava.awt.InsetsSpecifies the margins of the page

getBackgroundColor()

public Color getBackgroundColor()

Returns: java.awt.Color - the background color

setBackgroundColor(Color backgroundColor)

public void setBackgroundColor(Color backgroundColor)

Parameters:

ParameterTypeDescription
backgroundColorjava.awt.ColorSpecifies background color

isTransparent()

public boolean isTransparent()

Returns: boolean - Indicates if background is transparent

setTransparent(boolean transparent)

public void setTransparent(boolean transparent)

Parameters:

ParameterTypeDescription
transparentbooleanSpecifies if background is transparent

isEmbedFonts()

public boolean isEmbedFonts()

Indicates whether to embed used fonts in PS document

Returns: boolean - value of embedFonts flag

setEmbedFonts(boolean embedFonts)

public void setEmbedFonts(boolean embedFonts)

Specifies whether to embed used fonts in PS document

Parameters:

ParameterTypeDescription
embedFontsbooleanembedFonts flag

getEmbedFontsAs()

public String getEmbedFontsAs()

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

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

getSaveFormat()

public PsSaveFormat getSaveFormat()

Returns: PsSaveFormat - save format of resulting file

setSaveFormat(PsSaveFormat saveFormat)

public void setSaveFormat(PsSaveFormat saveFormat)

Specify save format of resulting file

Parameters:

ParameterTypeDescription
saveFormatPsSaveFormatFormat of resulting file