Click or drag to resize

PdfSaveOptions Class

Represents options for saving to Portable Document Format (PDF) file.
Inheritance Hierarchy

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public sealed class PdfSaveOptions : SaveOptions

The PdfSaveOptions type exposes the following members.

Public methodPdfSaveOptions
Initializes a new instance of the PdfSaveOptions class.
Public propertyContentType
Gets the content-type for PDF file format: application/pdf.
(Overrides SaveOptionsContentType.)
Public propertyDigitalSignature
Gets the digital signature options.
Public propertyDocumentOpenPassword
Specifies the password required for opening the encrypted PDF document.
Public propertyImageDpi
Gets or sets the saved images DPI.
Public propertyLimitations
Gets limitations for saving to PDF file format.
(Overrides SaveOptionsLimitations.)
Public propertyMetafileScaleFactor
Gets or sets the scaling factor for rendering metafile (WMF and EMF) images. Greater scaling factor improves quality but also increases file size. Default value is 1.
Public propertyPermissions
Gets or sets the operations that are allowed to a user on an encrypted PDF document.
Public propertyPermissionsPassword
Specifies the password for opening the encrypted PDF document without any access restrictions.
Public propertyCode exampleSelectionType
Gets or sets a value indicating whether to save the whole ExcelFile or just ActiveWorksheet.

Following code demonstrates how to save ExcelFile to PDF file format.

// Save active sheet

// Save all sheets
ef.Save("Report.pdf", new PdfSaveOptions()
    SelectionType = SelectionType.EntireFile
See Also