PdfSaveOptions class

Represents the options for saving pdf file.

public class PdfSaveOptions : SaveOptions


Name Description
PdfSaveOptions() Creates the options for saving pdf file.
PdfSaveOptions(SaveFormat) Creates the options for saving pdf file.


Name Description
AllColumnsInOnePagePerSheet { get; set; } 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.
Bookmark { get; set; } Gets and sets the PdfBookmarkEntry object.
CachedFileFolder { get; set; } The cached file folder is used to store some large data.
CalculateFormula { get; set; } Indicates whether to calculate formulas before saving pdf file.
CheckFontCompatibility { get; set; } Indicates whether to check font compatibility for every character in text.
CheckWorkbookDefaultFont { get; set; } 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.
ClearData { get; set; } Make the workbook empty after saving the file.
Compliance { get; set; } Workbook converts to pdf will according to PdfCompliance in this property.
CreateDirectory { get; set; } If true and the directory does not exist, the directory will be automatically created before saving the file.
CreatedTime { get; set; } Gets and sets the time of generating the pdf document.
CustomPropertiesExport { get; set; } Gets or sets a value determining the way CustomDocumentPropertyCollection are exported to PDF file. Default value is None.
DefaultEditLanguage { get; set; } Gets or sets default edit language.
DefaultFont { get; set; } 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.
DisplayDocTitle { get; set; } Indicates whether the window’s title bar should display the document title.
DrawObjectEventHandler { get; set; } Implements this interface to get DrawObject and Bound when rendering.
EmbedStandardWindowsFonts { get; set; } True to embed true type fonts. Affects only ASCII characters 32-127. Fonts for character codes greater than 127 are always embedded. Fonts are always embedded for PDF/A-1a, PDF/A-1b standard. Default is true.
EmfRenderSetting { get; set; } Setting for rendering Emf metafile.
EnableHTTPCompression { get; set; } Indicates if http compression is to be used in user’s IIS.
ExportDocumentStructure { get; set; } Indicates whether to export document structure.
FontEncoding { get; set; } Gets or sets embedded font encoding in pdf.
GridlineType { get; set; } Gets or sets gridline type.
IgnoreError { get; set; } Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc.
ImageType { get; set; } Represents the image type when converting the chart and shape .
IsFontSubstitutionCharGranularity { get; set; } Indicates whether to only substitute the font of character when the cell font is not compatibility for it.
MergeAreas { get; set; } Indicates whether merge the areas of conditional formatting and validation before saving the file.
OnePagePerSheet { get; set; } 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.
OptimizationType { get; set; } Gets and sets pdf optimization type.
OutputBlankPageWhenNothingToPrint { get; set; } Indicates whether to output a blank page when there is nothing to print.
PageCount { get; set; } Gets or sets the number of pages to save.
PageIndex { get; set; } Gets or sets the 0-based index of the first page to save.
PageSavingCallback { get; set; } Control/Indicate progress of page saving process.
PdfCompression { get; set; } Indicate the compression algorithm
PdfExportImagesFolder { get; set; } The physical folder where images will be saved when exporting a workbook to Aspose.Pdf XML format. Default is an empty string.
PrintingPageType { get; set; } Indicates which pages will not be printed.
Producer { get; set; } Gets and sets producer of generated pdf document.
RefreshChartCache { get; set; } Indicates whether refreshing chart cache data
SaveFormat { get; } Gets the save file format.
SecurityOptions { get; set; } Set this options, when security is need in xls2pdf result.
SortExternalNames { get; set; } Indicates whether sorting external defined names before saving file.
SortNames { get; set; } Indicates whether sorting defined names before saving file.
TextCrossType { get; set; } Gets or sets displaying text type when the text width is larger than cell width.
UpdateSmartArt { get; set; } Indicates whether updating smart art setting. The default value is false.
ValidateMergedAreas { get; set; } Indicates whether validate merged cells before saving the file.
WarningCallback { get; set; } Gets or sets warning callback.


Name Description
SetImageResample(int, int) Sets 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.

See Also