public class PdfSaveOptions
Constructor Summary |
---|
PdfSaveOptions()
Creates the options for saving pdf file. |
PdfSaveOptions(intsaveFormat)
Creates the options for saving pdf file. |
Property Getters/Setters Summary | ||
---|---|---|
boolean | getAllColumnsInOnePagePerSheet() | |
void | setAllColumnsInOnePagePerSheet(booleanvalue) | |
If AllColumnsInOnePagePerSheet is true , all column content of one sheet will output to only one page in result. The width of paper size of pagesetup will be ignored, and the other settings of pagesetup will still take effect. | ||
PdfBookmarkEntry | getBookmark() | |
void | setBookmark(PdfBookmarkEntry value) | |
Gets and sets the |
||
java.lang.String | getCachedFileFolder() | |
void | setCachedFileFolder(java.lang.Stringvalue) | |
The cached file folder is used to store some large data. | ||
boolean | getCalculateFormula() | |
void | setCalculateFormula(booleanvalue) | |
Indicates whether calculate formulas before saving pdf file. | ||
boolean | getCheckFontCompatibility() | |
void | setCheckFontCompatibility(booleanvalue) | |
Indicates whether check font compatibility for every character in text. | ||
boolean | getCheckWorkbookDefaultFont() | |
void | setCheckWorkbookDefaultFont(booleanvalue) | |
When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set this to true to try to use workbook's default font to show these characters first. | ||
boolean | getClearData() | |
void | setClearData(booleanvalue) | |
Make the workbook empty after saving the file. | ||
int | getCompliance() | |
void | setCompliance(intvalue) | |
Workbook converts to pdf will according to PdfCompliance in this property. The value of the property is PdfCompliance integer constant. | ||
boolean | getCreateDirectory() | |
void | setCreateDirectory(booleanvalue) | |
If true and the directory does not exist, the directory will be automatically created before saving the file. | ||
com.aspose.cells.DateTime | getCreatedTime() | |
void | setCreatedTime(com.aspose.cells.DateTimevalue) | |
Gets and sets the time of generating the pdf document. | ||
int | getCustomPropertiesExport() | |
void | setCustomPropertiesExport(intvalue) | |
Gets or sets a value determining the way |
||
java.lang.String | getDefaultFont() | |
void | setDefaultFont(java.lang.Stringvalue) | |
When characters in the Excel are unicode and not be set with correct font in cell style, They may appear as block in pdf,image. Set the DefaultFont such as MingLiu or MS Gothic to show these characters. If this property is not set, Aspose.Cells will use system default font to show these unicode characters. | ||
boolean | getDisplayDocTitle() | |
void | setDisplayDocTitle(booleanvalue) | |
Indicate whether the window's title bar should display the document title. | ||
DrawObjectEventHandler | getDrawObjectEventHandler() | |
void | ||
Implements this interface to get DrawObject and Bound when rendering. | ||
boolean | getEmbedStandardWindowsFonts() | |
void | setEmbedStandardWindowsFonts(booleanvalue) | |
True to embed true type fonts. Affects only ASCII characters 32-127. Fonts for character codes greater than 127 are always embedded. PDFA1B must embeded font. Default is true. | ||
int | getEmfRenderSetting() | |
void | setEmfRenderSetting(intvalue) | |
Setting for rendering Emf metafile. The value of the property is EmfRenderSetting integer constant. | ||
boolean | getEnableHTTPCompression() | |
void | setEnableHTTPCompression(booleanvalue) | |
Indicates if http compression is to be used in user's IIS. | ||
boolean | getExportDocumentStructure() | |
void | setExportDocumentStructure(booleanvalue) | |
Gets or sets a value determining whether or not to export document structure. | ||
int | getGridlineType() | |
void | setGridlineType(intvalue) | |
Gets or sets gridline type. The value of the property is GridlineType integer constant. | ||
boolean | getIgnoreError() | |
void | setIgnoreError(booleanvalue) | |
Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc. | ||
com.aspose.cells.ImageFormat | getImageType() | |
void | setImageType(com.aspose.cells.ImageFormatvalue) | |
Represents the image type when converting the chart and shape . | ||
boolean | isFontSubstitutionCharGranularity() | |
void | setFontSubstitutionCharGranularity(booleanvalue) | |
Indicates whether only substitute the font of character when the cell font is not compatibility for it. | ||
boolean | getMergeAreas() | |
void | setMergeAreas(booleanvalue) | |
Indicates whether merge the areas of conditional formatting and validation before saving the file. | ||
boolean | getOnePagePerSheet() | |
void | setOnePagePerSheet(booleanvalue) | |
If OnePagePerSheet is true , all content of one sheet will output to only one page in result. The paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect. | ||
int | getOptimizationType() | |
void | setOptimizationType(intvalue) | |
Gets and sets pdf optimization type. The value of the property is PdfOptimizationType integer constant. | ||
boolean | getOutputBlankPageWhenNothingToPrint() | |
void | setOutputBlankPageWhenNothingToPrint(booleanvalue) | |
Indicates whether to output a blank page when there is nothing to print. | ||
int | getPageCount() | |
void | setPageCount(intvalue) | |
Gets or sets the number of pages to save. | ||
int | getPageIndex() | |
void | setPageIndex(intvalue) | |
Gets or sets the 0-based index of the first page to save. | ||
IPageSavingCallback | getPageSavingCallback() | |
void | ||
Control/Indicate progress of page saving process. | ||
int | getPdfCompression() | |
void | setPdfCompression(intvalue) | |
Indcate the compression algorithm The value of the property is PdfCompressionCore integer constant. | ||
java.lang.String | getPdfExportImagesFolder() | |
void | setPdfExportImagesFolder(java.lang.Stringvalue) | |
The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string. | ||
int | getPrintingPageType() | |
void | setPrintingPageType(intvalue) | |
Indicates which pages will not be printed. The value of the property is PrintingPageType integer constant. | ||
boolean | getRefreshChartCache() | |
void | setRefreshChartCache(booleanvalue) | |
Indicates whether refreshing chart cache data | ||
int | getSaveFormat() | |
Gets the save file format.
The value of the property is SaveFormat integer constant. |
||
PdfSecurityOptions | getSecurityOptions() | |
void | ||
Set this options, when security is need in xls2pdf result. | ||
boolean | getSortNames() | |
void | setSortNames(booleanvalue) | |
Indicates whether sorting defined names before saving file. | ||
IStreamProvider | getStreamProvider() | |
void | setStreamProvider(IStreamProvider value) | |
Gets or sets the IStreamProvider for exporting objects. | ||
int | getTextCrossType() | |
void | setTextCrossType(intvalue) | |
Gets or sets displaying text type when the text width is larger than cell width. The value of the property is TextCrossType integer constant. | ||
boolean | getValidateMergedAreas() | |
void | setValidateMergedAreas(booleanvalue) | |
Indicates whether validate merged cells before saving the file. | ||
IWarningCallback | getWarningCallback() | |
void | ||
Gets or sets warning callback. |
Method Summary | ||
---|---|---|
void | setImageResample(int desiredPPI, int jpegQuality) | |
Set desired PPI(pixels per inch) of resample images and jpeg quality
All images will be converted to JPEG with the specified quality setting,
and images that are greater than the specified PPI (pixels per inch) will be resampled.
|
public PdfSaveOptions()
public PdfSaveOptions(int saveFormat)
saveFormat
- A public int getPrintingPageType() / public void setPrintingPageType(int value)
public boolean getEmbedStandardWindowsFonts() / public void setEmbedStandardWindowsFonts(boolean value)
public PdfBookmarkEntry getBookmark() / public void setBookmark(PdfBookmarkEntry value)
public int getCompliance() / public void setCompliance(int value)
public java.lang.String getDefaultFont() / public void setDefaultFont(java.lang.String value)
public boolean getCheckWorkbookDefaultFont() / public void setCheckWorkbookDefaultFont(boolean value)
public PdfSecurityOptions getSecurityOptions() / public void setSecurityOptions(PdfSecurityOptions value)
public boolean getOnePagePerSheet() / public void setOnePagePerSheet(boolean value)
public boolean getAllColumnsInOnePagePerSheet() / public void setAllColumnsInOnePagePerSheet(boolean value)
public com.aspose.cells.ImageFormat getImageType() / public void setImageType(com.aspose.cells.ImageFormat value)
public boolean getCalculateFormula() / public void setCalculateFormula(boolean value)
public int getPdfCompression() / public void setPdfCompression(int value)
public IStreamProvider getStreamProvider() / public void setStreamProvider(IStreamProvider value)
public boolean getCheckFontCompatibility() / public void setCheckFontCompatibility(boolean value)
public int getPageIndex() / public void setPageIndex(int value)
public int getPageCount() / public void setPageCount(int value)
public com.aspose.cells.DateTime getCreatedTime() / public void setCreatedTime(com.aspose.cells.DateTime value)
public int getOptimizationType() / public void setOptimizationType(int value)
public boolean isFontSubstitutionCharGranularity() / public void setFontSubstitutionCharGranularity(boolean value)
public int getGridlineType() / public void setGridlineType(int value)
public int getTextCrossType() / public void setTextCrossType(int value)
public boolean getIgnoreError() / public void setIgnoreError(boolean value)
public boolean getOutputBlankPageWhenNothingToPrint() / public void setOutputBlankPageWhenNothingToPrint(boolean value)
public DrawObjectEventHandler getDrawObjectEventHandler() / public void setDrawObjectEventHandler(DrawObjectEventHandler value)
public int getCustomPropertiesExport() / public void setCustomPropertiesExport(int value)
public boolean getExportDocumentStructure() / public void setExportDocumentStructure(boolean value)
public IPageSavingCallback getPageSavingCallback() / public void setPageSavingCallback(IPageSavingCallback value)
public int getEmfRenderSetting() / public void setEmfRenderSetting(int value)
public boolean getDisplayDocTitle() / public void setDisplayDocTitle(boolean value)
public int getSaveFormat()
public boolean getClearData() / public void setClearData(boolean value)
public java.lang.String getCachedFileFolder() / public void setCachedFileFolder(java.lang.String value)
public boolean getValidateMergedAreas() / public void setValidateMergedAreas(boolean value)
public boolean getMergeAreas() / public void setMergeAreas(boolean value)
public boolean getCreateDirectory() / public void setCreateDirectory(boolean value)
public boolean getSortNames() / public void setSortNames(boolean value)
public boolean getRefreshChartCache() / public void setRefreshChartCache(boolean value)
public java.lang.String getPdfExportImagesFolder() / public void setPdfExportImagesFolder(java.lang.String value)
public boolean getEnableHTTPCompression() / public void setEnableHTTPCompression(boolean value)
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value)
public void setImageResample(int desiredPPI, int jpegQuality)
desiredPPI
- Desired pixels per inch. 220 high quality. 150 screen quality. 96 email quality.jpegQuality
- 0 - 100% JPEG quality.