Class
PdfFormatProvider

Represents a format provider that can export PDF documents from a RadDocument.

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Pdf

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class PdfFormatProvider : DocumentFormatProviderBase, IDocumentFormatProvider, IUIElementMeasuringFormatProvider, IConfigurablePdfFormatProvider

Inheritance: objectDocumentFormatProviderBasePdfFormatProvider

Implements: IConfigurablePdfFormatProviderIDocumentFormatProviderIUIElementMeasuringFormatProvider

Inherited Members DocumentFormatProviderBase.Import(byte[])DocumentFormatProviderBase.Export(RadDocument)DocumentFormatProviderBase.FilesDescription

Constructors

PdfFormatProvider()

Initializes a new instance of the PdfFormatProvider class.

Declaration

cs-api-definition
public PdfFormatProvider()

Properties

CanExport

Gets a value indicating whether this instance can export.

Declaration

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

Property Value

bool

true if this instance can export; otherwise, false.

Overrides DocumentFormatProviderBase.CanExport

CanImport

Gets a value indicating whether this instance can import.

Declaration

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

Property Value

bool

true if this instance can import; otherwise, false.

Overrides DocumentFormatProviderBase.CanImport

ExportSettings

Gets or sets the settings which will be used while exporting a document.

Declaration

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

Property Value

PdfExportSettings

The export settings.

Implements IConfigurablePdfFormatProvider.ExportSettings

MeasuringPanel

Gets the name of the panel used by this format provider to arrange the document contents.

Declaration

cs-api-definition
public Panel MeasuringPanel { get; set; }

Property Value

Panel

The panel.

Implements IUIElementMeasuringFormatProvider.MeasuringPanel

Name

Gets the name of the specific format provider.

Declaration

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

Property Value

string

The name.

Overrides DocumentFormatProviderBase.Name

SupportedExtensions

Gets the extensions supported by this format provider.

Declaration

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

Property Value

IEnumerable<string>

The supported extensions.

Overrides DocumentFormatProviderBase.SupportedExtensions

Methods

Export(RadDocument, Stream)

Exports the specified RadDocument instance.

Declaration

cs-api-definition
public override void Export(RadDocument document, Stream output)

Parameters

document

RadDocument

The document.

output

Stream

The Stream the document should be saved into.

Overrides DocumentFormatProviderBase.Export(RadDocument, Stream)

Import(Stream)

Imports the specified Stream into a RadDocument instance.

Not supported in PdfFormatProvider.

Declaration

cs-api-definition
public override RadDocument Import(Stream input)

Parameters

input

Stream

The Stream containing the document data.

Returns

RadDocument

The generated RadDocument instance.

Overrides DocumentFormatProviderBase.Import(Stream)