Class PdfSaveOptions

PdfSaveOptions class

Represents the options for saving pdf file.

public class PdfSaveOptions : PaginatedSaveOptions

Constructors

NameDescription
PdfSaveOptions()Creates the options for saving pdf file.

Properties

NameDescription
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.(Inherited from PaginatedSaveOptions.)
Bookmark { get; set; }Gets and sets the PdfBookmarkEntry object.
CachedFileFolder { get; set; }The cached file folder is used to store some large data.(Inherited from SaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
ClearData { get; set; }Make the workbook empty after saving the file.(Inherited from SaveOptions.)
Compliance { get; set; }Gets or sets the PDF standards compliance level for output documents.
CreateDirectory { get; set; }If true and the directory does not exist, the directory will be automatically created before saving the file.(Inherited from SaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
IgnoreError { get; set; }Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc.(Inherited from PaginatedSaveOptions.)
ImageType { get; set; }(Obsolete.) 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.(Inherited from PaginatedSaveOptions.)
MergeAreas { get; set; }Indicates whether merge the areas of conditional formatting and validation before saving the file.(Inherited from SaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
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.(Inherited from PaginatedSaveOptions.)
PageCount { get; set; }Gets or sets the number of pages to save.(Inherited from PaginatedSaveOptions.)
PageIndex { get; set; }Gets or sets the 0-based index of the first page to save.(Inherited from PaginatedSaveOptions.)
PageSavingCallback { get; set; }Control/Indicate progress of page saving process.(Inherited from PaginatedSaveOptions.)
PdfCompression { get; set; }Indicate the compression algorithm
PrintingPageType { get; set; }Indicates which pages will not be printed.(Inherited from PaginatedSaveOptions.)
Producer { get; set; }Gets and sets producer of generated pdf document.
RefreshChartCache { get; set; }Indicates whether refreshing chart cache data(Inherited from SaveOptions.)
SaveFormat { get; }Gets the save file format.(Inherited from SaveOptions.)
SecurityOptions { get; set; }Set this options, when security is need in xls2pdf result.
SheetSet { get; set; }Gets or sets the sheets to render. Default is all visible sheets in the workbook: Visible.(Inherited from PaginatedSaveOptions.)
SortExternalNames { get; set; }Indicates whether sorting external defined names before saving file.(Inherited from SaveOptions.)
SortNames { get; set; }Indicates whether sorting defined names before saving file.(Inherited from SaveOptions.)
TextCrossType { get; set; }Gets or sets displaying text type when the text width is larger than cell width.(Inherited from PaginatedSaveOptions.)
UpdateSmartArt { get; set; }Indicates whether updating smart art setting. The default value is false.(Inherited from SaveOptions.)
ValidateMergedAreas { get; set; }Indicates whether validate merged cells before saving the file.(Inherited from SaveOptions.)
WarningCallback { get; set; }Gets or sets warning callback.(Inherited from SaveOptions.)
Watermark { get; set; }Gets or sets watermark to output.

Methods

NameDescription
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