java.lang.ObjectSaveOptions
com.aspose.cells.PaginatedSaveOptions
public abstract class PaginatedSaveOptions
Example:
//Open an Excel file
Workbook wb = new Workbook("Book1.xlsx");
PdfSaveOptions options = new PdfSaveOptions();
//Print only Page 3 and Page 4 in the output PDF
//Starting page index (0-based index)
options.setPageIndex(3);
//Number of pages to be printed
options.setPageCount(2);
//Save the PDF file
wb.save("output.pdf", options);
| Property Getters/Setters Summary | ||
|---|---|---|
boolean | getAllColumnsInOnePagePerSheet() | |
void | setAllColumnsInOnePagePerSheet(boolean) | |
| 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. | ||
java.lang.String | getCachedFileFolder() | → inherited from SaveOptions
|
void | setCachedFileFolder(java.lang.String) | |
| The cached file folder is used to store some large data. | ||
boolean | getCheckFontCompatibility() | |
void | setCheckFontCompatibility(boolean) | |
| Indicates whether to check font compatibility for every character in text. | ||
boolean | getCheckWorkbookDefaultFont() | |
void | setCheckWorkbookDefaultFont(boolean) | |
| 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() | → inherited from SaveOptions
|
void | setClearData(boolean) | |
| Make the workbook empty after saving the file. | ||
boolean | getCreateDirectory() | → inherited from SaveOptions
|
void | setCreateDirectory(boolean) | |
| If true and the directory does not exist, the directory will be automatically created before saving the file. | ||
int | getDefaultEditLanguage() | |
void | setDefaultEditLanguage(int) | |
| Gets or sets default edit language. The value of the property is DefaultEditLanguage integer constant. | ||
java.lang.String | getDefaultFont() | |
void | setDefaultFont(java.lang.String) | |
| 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. | ||
DrawObjectEventHandler | getDrawObjectEventHandler() | |
void | setDrawObjectEventHandler(DrawObjectEventHandler) | |
| Implements this interface to get DrawObject and Bound when rendering. | ||
int | getGridlineType() | |
void | setGridlineType(int) | |
| Gets or sets gridline type. The value of the property is GridlineType integer constant. | ||
boolean | getIgnoreError() | |
void | setIgnoreError(boolean) | |
| Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc. | ||
boolean | isFontSubstitutionCharGranularity() | |
void | setFontSubstitutionCharGranularity(boolean) | |
| Indicates whether to only substitute the font of character when the cell font is not compatibility for it. | ||
boolean | getMergeAreas() | → inherited from SaveOptions
|
void | setMergeAreas(boolean) | |
| Indicates whether merge the areas of conditional formatting and validation before saving the file. | ||
boolean | getOnePagePerSheet() | |
void | setOnePagePerSheet(boolean) | |
| 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. | ||
boolean | getOutputBlankPageWhenNothingToPrint() | |
void | setOutputBlankPageWhenNothingToPrint(boolean) | |
| Indicates whether to output a blank page when there is nothing to print. | ||
int | getPageCount() | |
void | setPageCount(int) | |
| Gets or sets the number of pages to save. | ||
int | getPageIndex() | |
void | setPageIndex(int) | |
| Gets or sets the 0-based index of the first page to save. | ||
IPageSavingCallback | getPageSavingCallback() | |
void | setPageSavingCallback(IPageSavingCallback) | |
| Control/Indicate progress of page saving process. | ||
int | getPrintingPageType() | |
void | setPrintingPageType(int) | |
| Indicates which pages will not be printed. The value of the property is PrintingPageType integer constant. | ||
boolean | getRefreshChartCache() | → inherited from SaveOptions
|
void | setRefreshChartCache(boolean) | |
| Indicates whether refreshing chart cache data | ||
int | getSaveFormat() | → inherited from SaveOptions
|
| Gets the save file format. The value of the property is SaveFormat integer constant. | ||
SheetSet | getSheetSet() | |
void | setSheetSet(SheetSet) | |
|
Gets or sets the sheets to render. Default is all visible sheets in the workbook: |
||
boolean | getSortExternalNames() | → inherited from SaveOptions
|
void | setSortExternalNames(boolean) | |
| Indicates whether sorting external defined names before saving file. | ||
boolean | getSortNames() | → inherited from SaveOptions
|
void | setSortNames(boolean) | |
| Indicates whether sorting defined names before saving file. | ||
int | getTextCrossType() | |
void | setTextCrossType(int) | |
| 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 | getUpdateSmartArt() | → inherited from SaveOptions
|
void | setUpdateSmartArt(boolean) | |
| Indicates whether updating smart art setting. The default value is false. | ||
boolean | getValidateMergedAreas() | → inherited from SaveOptions
|
void | setValidateMergedAreas(boolean) | |
| Indicates whether validate merged cells before saving the file. | ||
IWarningCallback | getWarningCallback() | → inherited from SaveOptions
|
void | setWarningCallback(IWarningCallback) | |
| Gets or sets warning callback. | ||
| Property Getters/Setters Detail |
|---|
getDefaultFont/setDefaultFont | |
public java.lang.String getDefaultFont() / public void setDefaultFont(java.lang.String value) | |
getCheckWorkbookDefaultFont/setCheckWorkbookDefaultFont | |
public boolean getCheckWorkbookDefaultFont() / public void setCheckWorkbookDefaultFont(boolean value) | |
getCheckFontCompatibility/setCheckFontCompatibility | |
public boolean getCheckFontCompatibility() / public void setCheckFontCompatibility(boolean value) | |
isFontSubstitutionCharGranularity/setFontSubstitutionCharGranularity | |
public boolean isFontSubstitutionCharGranularity() / public void setFontSubstitutionCharGranularity(boolean value) | |
getOnePagePerSheet/setOnePagePerSheet | |
public boolean getOnePagePerSheet() / public void setOnePagePerSheet(boolean value) | |
getAllColumnsInOnePagePerSheet/setAllColumnsInOnePagePerSheet | |
public boolean getAllColumnsInOnePagePerSheet() / public void setAllColumnsInOnePagePerSheet(boolean value) | |
getIgnoreError/setIgnoreError | |
public boolean getIgnoreError() / public void setIgnoreError(boolean value) | |
getOutputBlankPageWhenNothingToPrint/setOutputBlankPageWhenNothingToPrint | |
public boolean getOutputBlankPageWhenNothingToPrint() / public void setOutputBlankPageWhenNothingToPrint(boolean value) | |
getPageIndex/setPageIndex | |
public int getPageIndex() / public void setPageIndex(int value) | |
getPageCount/setPageCount | |
public int getPageCount() / public void setPageCount(int value) | |
Example:
//Open an Excel file
Workbook wb = new Workbook("Book1.xlsx");
PdfSaveOptions options = new PdfSaveOptions();
//Print only Page 3 and Page 4 in the output PDF
//Starting page index (0-based index)
options.setPageIndex(3);
//Number of pages to be printed
options.setPageCount(2);
//Save the PDF file
wb.save("output.pdf", options);getPrintingPageType/setPrintingPageType | |
public int getPrintingPageType() / public void setPrintingPageType(int value) | |
Example:
Workbook wb = new Workbook("Book1.xlsx");
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
//ignore blank pages
pdfSaveOptions.setPrintingPageType(PrintingPageType.IGNORE_BLANK);
wb.save("output_ignore_blank_page.pdf", pdfSaveOptions);
//ignore blank pages and pages which only contains some style content like cell background
pdfSaveOptions.setPrintingPageType(PrintingPageType.IGNORE_STYLE);
wb.save("output_ignore_blank_and_style_page.pdf", pdfSaveOptions);getGridlineType/setGridlineType | |
public int getGridlineType() / public void setGridlineType(int value) | |
getTextCrossType/setTextCrossType | |
public int getTextCrossType() / public void setTextCrossType(int value) | |
getDefaultEditLanguage/setDefaultEditLanguage | |
public int getDefaultEditLanguage() / public void setDefaultEditLanguage(int value) | |
getSheetSet/setSheetSet | |
public SheetSet getSheetSet() / public void setSheetSet(SheetSet value) | |
getDrawObjectEventHandler/setDrawObjectEventHandler | |
public DrawObjectEventHandler getDrawObjectEventHandler() / public void setDrawObjectEventHandler(DrawObjectEventHandler value) | |
getPageSavingCallback/setPageSavingCallback | |
public IPageSavingCallback getPageSavingCallback() / public void setPageSavingCallback(IPageSavingCallback value) | |
getSaveFormat | → inherited from SaveOptions
|
public int getSaveFormat() | |
getClearData/setClearData | → inherited from SaveOptions
|
public boolean getClearData() / public void setClearData(boolean value) | |
getCachedFileFolder/setCachedFileFolder | → inherited from SaveOptions
|
public java.lang.String getCachedFileFolder() / public void setCachedFileFolder(java.lang.String value) | |
getValidateMergedAreas/setValidateMergedAreas | → inherited from SaveOptions
|
public boolean getValidateMergedAreas() / public void setValidateMergedAreas(boolean value) | |
getMergeAreas/setMergeAreas | → inherited from SaveOptions
|
public boolean getMergeAreas() / public void setMergeAreas(boolean value) | |
getCreateDirectory/setCreateDirectory | → inherited from SaveOptions
|
public boolean getCreateDirectory() / public void setCreateDirectory(boolean value) | |
getSortNames/setSortNames | → inherited from SaveOptions
|
public boolean getSortNames() / public void setSortNames(boolean value) | |
getSortExternalNames/setSortExternalNames | → inherited from SaveOptions
|
public boolean getSortExternalNames() / public void setSortExternalNames(boolean value) | |
getRefreshChartCache/setRefreshChartCache | → inherited from SaveOptions
|
public boolean getRefreshChartCache() / public void setRefreshChartCache(boolean value) | |
getWarningCallback/setWarningCallback | → inherited from SaveOptions
|
public IWarningCallback getWarningCallback() / public void setWarningCallback(IWarningCallback value) | |
getUpdateSmartArt/setUpdateSmartArt | → inherited from SaveOptions
|
public boolean getUpdateSmartArt() / public void setUpdateSmartArt(boolean value) | |