ClassPdfFormatProvider
Imports and exports RadFixedDocument to and from PDF, supporting both all-at-once and on-demand reading.
Definition
Namespace:Telerik.Windows.Documents.Fixed.FormatProviders.Pdf
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class PdfFormatProvider : BinaryFormatProviderBase<RadFixedDocument>, IFormatProvider<RadFixedDocument>, IBinaryFormatProvider<RadFixedDocument>
Inheritance: objectFormatProviderBase<RadFixedDocument>BinaryFormatProviderBase<RadFixedDocument>PdfFormatProvider
Implements:
Inherited Members
Constructors
PdfFormatProvider()
Creates a provider with default import and export settings.
Declaration
public PdfFormatProvider()
Properties
CanExport
Gets a value indicating whether exporting to PDF is supported.
Declaration
public override bool CanExport { get; }
Property Value
The value indicating whether can export.
Overrides
CanImport
Gets a value indicating whether importing from PDF is supported.
Declaration
public override bool CanImport { get; }
Property Value
The value indicating whether can import.
Overrides
ExportSettings
Gets or sets PDF export settings used when writing documents.
Declaration
public PdfExportSettings ExportSettings { get; set; }
Property Value
The export settings.
ImportSettings
Gets or sets PDF import settings, including reading mode and execution behavior.
Declaration
public PdfImportSettings ImportSettings { get; set; }
Property Value
The import settings.
SupportedExtensions
Gets the file extensions this provider can process.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
The supported extensions.
Overrides
Methods
ExportOverride(RadFixedDocument, Stream, CancellationToken)
Exports the specified document.
Declaration
protected override void ExportOverride(RadFixedDocument document, Stream output, CancellationToken cancellationToken)
Parameters
document
The document to export.
output
The output.
cancellationToken
The cancellation token used to cancel the operation.
Overrides
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFixedDocument ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
input
The input.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The imported document.
Overrides