PsSaveOptions
Inheritance: java.lang.Object, com.aspose.page.SaveOptions
public class PsSaveOptions extends SaveOptions
This class contains options necessary for managing conversion process.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
supressErrors | boolean | If 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:
Parameter | Type | Description |
---|---|---|
pageSize | java.awt.Dimension | Specifies 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:
Parameter | Type | Description |
---|---|---|
margins | java.awt.Insets | Specifies 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:
Parameter | Type | Description |
---|---|---|
backgroundColor | java.awt.Color | Specifies background color |
isTransparent()
public boolean isTransparent()
Returns: boolean - Indicates if background is transparent
setTransparent(boolean transparent)
public void setTransparent(boolean transparent)
Parameters:
Parameter | Type | Description |
---|---|---|
transparent | boolean | Specifies 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:
Parameter | Type | Description |
---|---|---|
embedFonts | boolean | embedFonts 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:
Parameter | Type | Description |
---|---|---|
embedFontsAs | java.lang.String | Font 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:
Parameter | Type | Description |
---|---|---|
saveFormat | PsSaveFormat | Format of resulting file |