public class PsSaveOptions extends SaveOptions
This class contains options necessary for managing conversion process.
| Constructor and 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). |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBackgroundColor() |
String |
getEmbedFontsAs() |
Insets |
getMargins() |
Dimension |
getPageSize() |
PsSaveFormat |
getSaveFormat() |
boolean |
isEmbedFonts()
Indicates whether to embed used fonts in PS document
|
boolean |
isTransparent() |
void |
setBackgroundColor(Color backgroundColor) |
void |
setEmbedFonts(boolean embedFonts)
Specifies whether to embed used fonts in PS document
|
void |
setEmbedFontsAs(String embedFontsAs)
Specify font type in which to embed fonts in PS document
|
void |
setMargins(Insets margins) |
void |
setPageSize(Dimension pageSize) |
void |
setSaveFormat(PsSaveFormat saveFormat)
Specify save format of resulting file
|
void |
setTransparent(boolean transparent) |
getAdditionalFontsFolders, getConvertFontsToTTF, getExceptions, getJpegQualityLevel, getSize, isDebug, isSupressErrors, setAdditionalFontsFolders, setConvertFontsToTTF, setDebug, setJpegQualityLevel, setSize, setSupressErrorspublic PsSaveOptions()
Initialize new instance of PdfSaveOptions class with default values for flags suppressErrors (true) and
debug (false).
public PsSaveOptions(boolean supressErrors)
Initialize new instance of PdfSaveOptions class with default values for flag debug (false).
supressErrors - If true conversion will be continued despite of non-critical errors.public Dimension getPageSize()
public void setPageSize(Dimension pageSize)
pageSize - Specifies the size of the pagepublic Insets getMargins()
public void setMargins(Insets margins)
margins - Specifies the margins of the pagepublic Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
backgroundColor - Specifies background colorpublic boolean isTransparent()
public void setTransparent(boolean transparent)
transparent - Specifies if background is transparentpublic boolean isEmbedFonts()
public void setEmbedFonts(boolean embedFonts)
embedFonts - embedFonts flagpublic String getEmbedFontsAs()
public void setEmbedFontsAs(String embedFontsAs)
embedFontsAs - Font typepublic PsSaveFormat getSaveFormat()
public void setSaveFormat(PsSaveFormat saveFormat)
saveFormat - Format of resulting fileCopyright © 2025 Aspose. All Rights Reserved.