PdfFormatProvider
Exports workbooks to PDF format by rendering worksheets as paginated documents; import is not supported.
Definition
Namespace:Telerik.Documents.Spreadsheet.FormatProviders.Pdf
Assembly:Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.dll
Syntax:
public class PdfFormatProvider : BinaryWorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider
Inheritance: objectWorkbookFormatProviderBaseBinaryWorkbookFormatProviderBasePdfFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the PdfFormatProvider class.
public PdfFormatProvider()
Properties
Indicates that this provider supports exporting workbooks to PDF format.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Indicates that this provider does not support importing PDF files into workbooks.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Configures which content to export and how to render worksheets as PDF pages.
public PdfExportSettings ExportSettings { get; set; }
The export settings.
Describes the file type as "PDF Documents" for display in UI contexts.
public override string FilesDescription { get; }
The files description.
Overrides:
Identifies this format provider as "PdfFormatProvider" for registration and lookup.
public override string Name { get; }
The name of the provider.
Overrides:
Specifies that this provider handles files with .pdf extension.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Writes the workbook content to the stream as a PDF document, respecting export settings for scope and rendering options.
protected override void ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken)
The workbook to export.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Converts the workbook to a RadFixedDocument for further processing or rendering, based on export settings.