Aspose::Cells::PdfSaveOptions class

PdfSaveOptions class

Represents the options for saving pdf file.

class PdfSaveOptions : public Aspose::Cells::PaginatedSaveOptions

Methods

MethodDescription
GetAllColumnsInOnePagePerSheet()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.
GetBookmark()Gets and sets the PdfBookmarkEntry object.
GetCachedFileFolder()The cached file folder is used to store some large data.
GetCalculateFormula()Indicates whether to calculate formulas before saving pdf file.
GetCheckFontCompatibility()Indicates whether to check font compatibility for every character in text.
GetCheckWorkbookDefaultFont()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.
GetClearData()Make the workbook empty after saving the file.
GetCompliance()Gets or sets the PDF standards compliance level for output documents.
GetCreateDirectory()If true and the directory does not exist, the directory will be automatically created before saving the file.
GetCreatedTime()Gets and sets the time of generating the pdf document.
GetCustomPropertiesExport()Gets or sets a value determining the way CustomDocumentPropertyCollection are exported to PDF file. Default value is None.
GetDefaultEditLanguage()Gets or sets default edit language.
GetDefaultFont()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.
GetDisplayDocTitle()Indicates whether the window’s title bar should display the document title.
GetDrawObjectEventHandler()Implements this interface to get DrawObject and Bound when rendering.
GetEmbedAttachments()Indicates whether to embed attchment for Ole objects in Excel.
GetEmbedStandardWindowsFonts()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.
GetEmfRenderSetting()Setting for rendering Emf metafile.
GetExportDocumentStructure()Indicates whether to export document structure.
GetFontEncoding()Gets or sets embedded font encoding in pdf.
GetGridlineType()Gets or sets gridline type.
GetIgnoreError()Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc.
GetMergeAreas()Indicates whether merge the areas of conditional formatting and validation before saving the file.
GetOnePagePerSheet()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.
GetOptimizationType()Gets and sets pdf optimization type.
GetOutputBlankPageWhenNothingToPrint()Indicates whether to output a blank page when there is nothing to print.
GetPageCount()Gets or sets the number of pages to save.
GetPageIndex()Gets or sets the 0-based index of the first page to save.
GetPageSavingCallback()Control/Indicate progress of page saving process.
GetPdfCompression()Indicate the compression algorithm.
GetPrintingPageType()Indicates which pages will not be printed.
GetProducer()Gets and sets producer of generated pdf document.
GetRefreshChartCache()Indicates whether refreshing chart cache data.
GetSaveFormat()Gets the save file format.
GetSecurityOptions()Set this options, when security is need in xls2pdf result.
GetSheetSet()Gets or sets the sheets to render. Default is all visible sheets in the workbook: Aspose.Cells.Rendering.SheetSet.Visible.
GetSortExternalNames()Indicates whether sorting external defined names before saving file.
GetSortNames()Indicates whether sorting defined names before saving file.
GetTextCrossType()Gets or sets displaying text type when the text width is larger than cell width.
GetUpdateSmartArt()Indicates whether updating smart art setting. The default value is false.
GetValidateMergedAreas()Indicates whether validate merged cells before saving the file.
GetWarningCallback()Gets or sets warning callback.
GetWatermark()Gets or sets watermark to output.
IsFontSubstitutionCharGranularity()Indicates whether to only substitute the font of character when the cell font is not compatibility for it.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const PdfSaveOptions& src)operator=
operator=(const PaginatedSaveOptions& src)operator=
operator=(const SaveOptions& src)operator=
PaginatedSaveOptions(PaginatedSaveOptions_Impl* impl)Constructs from an implementation object.
PaginatedSaveOptions(const PaginatedSaveOptions& src)Copy constructor.
PaginatedSaveOptions(const SaveOptions& src)Constructs from a parent object.
PdfSaveOptions()Creates the options for saving pdf file.
PdfSaveOptions(PdfSaveOptions_Impl* impl)Constructs from an implementation object.
PdfSaveOptions(const PdfSaveOptions& src)Copy constructor.
PdfSaveOptions(const PaginatedSaveOptions& src)Constructs from a parent object.
SaveOptions(SaveOptions_Impl* impl)Constructs from an implementation object.
SaveOptions(const SaveOptions& src)Copy constructor.
SetAllColumnsInOnePagePerSheet(bool value)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.
SetBookmark(const PdfBookmarkEntry& value)Gets and sets the PdfBookmarkEntry object.
SetCachedFileFolder(const U16String& value)The cached file folder is used to store some large data.
SetCachedFileFolder(const char16_t* value)The cached file folder is used to store some large data.
SetCalculateFormula(bool value)Indicates whether to calculate formulas before saving pdf file.
SetCheckFontCompatibility(bool value)Indicates whether to check font compatibility for every character in text.
SetCheckWorkbookDefaultFont(bool value)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.
SetClearData(bool value)Make the workbook empty after saving the file.
SetCompliance(PdfCompliance value)Gets or sets the PDF standards compliance level for output documents.
SetCreateDirectory(bool value)If true and the directory does not exist, the directory will be automatically created before saving the file.
SetCreatedTime(const Date& value)Gets and sets the time of generating the pdf document.
SetCustomPropertiesExport(PdfCustomPropertiesExport value)Gets or sets a value determining the way CustomDocumentPropertyCollection are exported to PDF file. Default value is None.
SetDefaultEditLanguage(DefaultEditLanguage value)Gets or sets default edit language.
SetDefaultFont(const U16String& value)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.
SetDefaultFont(const char16_t* value)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.
SetDisplayDocTitle(bool value)Indicates whether the window’s title bar should display the document title.
SetDrawObjectEventHandler(DrawObjectEventHandler* value)Implements this interface to get DrawObject and Bound when rendering.
SetEmbedAttachments(bool value)Indicates whether to embed attchment for Ole objects in Excel.
SetEmbedStandardWindowsFonts(bool value)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.
SetEmfRenderSetting(EmfRenderSetting value)Setting for rendering Emf metafile.
SetExportDocumentStructure(bool value)Indicates whether to export document structure.
SetFontEncoding(PdfFontEncoding value)Gets or sets embedded font encoding in pdf.
SetGridlineType(GridlineType value)Gets or sets gridline type.
SetIgnoreError(bool value)Indicates if you need to hide the error while rendering. The error can be error in shape, image, chart rendering, etc.
SetImageResample(int32_t desiredPPI, int32_t jpegQuality)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.
SetIsFontSubstitutionCharGranularity(bool value)Indicates whether to only substitute the font of character when the cell font is not compatibility for it.
SetMergeAreas(bool value)Indicates whether merge the areas of conditional formatting and validation before saving the file.
SetOnePagePerSheet(bool value)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.
SetOptimizationType(PdfOptimizationType value)Gets and sets pdf optimization type.
SetOutputBlankPageWhenNothingToPrint(bool value)Indicates whether to output a blank page when there is nothing to print.
SetPageCount(int32_t value)Gets or sets the number of pages to save.
SetPageIndex(int32_t value)Gets or sets the 0-based index of the first page to save.
SetPageSavingCallback(IPageSavingCallback* value)Control/Indicate progress of page saving process.
SetPdfCompression(PdfCompressionCore value)Indicate the compression algorithm.
SetPrintingPageType(PrintingPageType value)Indicates which pages will not be printed.
SetProducer(const U16String& value)Gets and sets producer of generated pdf document.
SetProducer(const char16_t* value)Gets and sets producer of generated pdf document.
SetRefreshChartCache(bool value)Indicates whether refreshing chart cache data.
SetSecurityOptions(const PdfSecurityOptions& value)Set this options, when security is need in xls2pdf result.
SetSheetSet(const SheetSet& value)Gets or sets the sheets to render. Default is all visible sheets in the workbook: Aspose.Cells.Rendering.SheetSet.Visible.
SetSortExternalNames(bool value)Indicates whether sorting external defined names before saving file.
SetSortNames(bool value)Indicates whether sorting defined names before saving file.
SetTextCrossType(TextCrossType value)Gets or sets displaying text type when the text width is larger than cell width.
SetUpdateSmartArt(bool value)Indicates whether updating smart art setting. The default value is false.
SetValidateMergedAreas(bool value)Indicates whether validate merged cells before saving the file.
SetWarningCallback(IWarningCallback* value)Gets or sets warning callback.
SetWatermark(const RenderingWatermark& value)Gets or sets watermark to output.
~PaginatedSaveOptions()Destructor.
~PdfSaveOptions()Destructor.
~SaveOptions()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also