Class
PdfFormatProvider

Exports workbooks to PDF format by rendering worksheets as paginated documents; import is not supported.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf

Assembly:Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.dll

Syntax:

cs-api-definition
public class PdfFormatProvider : BinaryWorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider

Inheritance: objectWorkbookFormatProviderBaseBinaryWorkbookFormatProviderBasePdfFormatProvider

Implements: IBinaryWorkbookFormatProviderIWorkbookFormatProvider

Inherited Members BinaryWorkbookFormatProviderBase.Import(byte[])BinaryWorkbookFormatProviderBase.Import(byte[], TimeSpan?)BinaryWorkbookFormatProviderBase.Export(Workbook)BinaryWorkbookFormatProviderBase.Export(Workbook, TimeSpan?)WorkbookFormatProviderBase.Import(Stream)WorkbookFormatProviderBase.Import(Stream, TimeSpan?)WorkbookFormatProviderBase.ImportOverride(Stream)WorkbookFormatProviderBase.ImportOverride(Stream, CancellationToken)WorkbookFormatProviderBase.Export(Workbook, Stream)WorkbookFormatProviderBase.Export(Workbook, Stream, TimeSpan?)

Constructors

PdfFormatProvider()

Initializes a new instance of the PdfFormatProvider class.

Declaration

cs-api-definition
public PdfFormatProvider()

Properties

CanExport

Indicates that this provider supports exporting workbooks to PDF format.

Declaration

cs-api-definition
public override bool CanExport { get; }

Property Value

bool

The value indicating whether can export.

Overrides WorkbookFormatProviderBase.CanExport

CanImport

Indicates that this provider does not support importing PDF files into workbooks.

Declaration

cs-api-definition
public override bool CanImport { get; }

Property Value

bool

The value indicating whether can import.

Overrides WorkbookFormatProviderBase.CanImport

ExportSettings

Configures which content to export and how to render worksheets as PDF pages.

Declaration

cs-api-definition
public PdfExportSettings ExportSettings { get; set; }

Property Value

PdfExportSettings

The export settings.

FilesDescription

Describes the file type as "PDF Documents" for display in UI contexts.

Declaration

cs-api-definition
public override string FilesDescription { get; }

Property Value

string

The files description.

Overrides WorkbookFormatProviderBase.FilesDescription

Name

Identifies this format provider as "PdfFormatProvider" for registration and lookup.

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name of the provider.

Overrides WorkbookFormatProviderBase.Name

SupportedExtensions

Specifies that this provider handles files with .pdf extension.

Declaration

cs-api-definition
public override IEnumerable<string> SupportedExtensions { get; }

Property Value

IEnumerable<string>

The supported extensions.

Overrides WorkbookFormatProviderBase.SupportedExtensions

Methods

ExportOverride(Workbook, Stream)

Exports the specified workbook.

Declaration

cs-api-definition
[Obsolete("This method is obsolete. Please use ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken) instead.")]
protected override void ExportOverride(Workbook workbook, Stream output)

Parameters

workbook

Workbook

The workbook to export.

output

Stream

The output.

Overrides WorkbookFormatProviderBase.ExportOverride(Workbook, Stream)

ExportOverride(Workbook, Stream, CancellationToken)

Writes the workbook content to the stream as a PDF document, respecting export settings for scope and rendering options.

Declaration

cs-api-definition
protected override void ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken)

Parameters

workbook

Workbook

The workbook to export.

output

Stream

The output.

cancellationToken

CancellationToken

The cancellation token used to cancel the operation.

Overrides WorkbookFormatProviderBase.ExportOverride(Workbook, Stream, CancellationToken)

ExportToFixedDocument(Workbook)

Exports to fixed document.

Declaration

cs-api-definition
[Obsolete("This method is obsolete. Please use Export(Workbook workbook, TimeSpan? timeout) instead.")]
public RadFixedDocument ExportToFixedDocument(Workbook workbook)

Parameters

workbook

Workbook

The workbook.

Returns

RadFixedDocument

The exported fixed document.

ExportToFixedDocument(Workbook, TimeSpan?)

Converts the workbook to a RadFixedDocument for further processing or rendering, based on export settings.

Declaration

cs-api-definition
public RadFixedDocument ExportToFixedDocument(Workbook workbook, TimeSpan? timeout)

Parameters

workbook

Workbook

The workbook.

timeout

TimeSpan?

The timeout after which the operation will cancel.

Returns

RadFixedDocument

The exported fixed document.