PdfFormatProvider
Imports and exports RadFixedDocument to and from PDF, supporting both all-at-once and on-demand reading.
Definition
Namespace:Telerik.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
Creates a provider with default import and export settings.
public PdfFormatProvider()
Properties
Gets a value indicating whether exporting to PDF is supported.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether importing from PDF is supported.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets PDF export settings used when writing documents.
public PdfExportSettings ExportSettings { get; set; }
The export settings.
Gets or sets PDF import settings, including reading mode and execution behavior.
public PdfImportSettings ImportSettings { get; set; }
The import settings.
Gets the file extensions this provider can process.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Exports the specified document.
protected override void ExportOverride(RadFixedDocument document, Stream output, CancellationToken cancellationToken)
The document to export.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Imports the specified input.
protected override RadFixedDocument ImportOverride(Stream input, CancellationToken cancellationToken)
The input.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: