New to Telerik Document Processing? Start a free 30-day trial

Exports flow documents to PDF format by converting them to fixed-layout documents; import is not supported.

Definition

Constructors

Initializes a new instance of the PdfFormatProvider class.

C#
public PdfFormatProvider()

Properties

Gets a value indicating whether this format provider can export documents, which is always true for PDF.

C#
public override bool CanExport { get; }
Property Value:

The value indicating whether can export.

Overrides: FormatProviderBase<RadFlowDocument>.CanExport

Gets a value indicating whether this format provider can import documents, which is always false for PDF.

C#
public override bool CanImport { get; }
Property Value:

The value indicating whether can import.

Overrides: FormatProviderBase<RadFlowDocument>.CanImport

Gets or sets the export settings that control numbering field precision and extensibility options during PDF generation.

C#
public PdfExportSettings ExportSettings { get; set; }
Property Value:

The export settings.

Gets the file extensions supported by this provider, which includes .pdf only.

C#
public override IEnumerable<string> SupportedExtensions { get; }
Property Value:

The supported extensions.

Overrides: FormatProviderBase<RadFlowDocument>.SupportedExtensions

Methods

Exports the specified document.

C#
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
Parameters:documentRadFlowDocument

The document.

outputStream

The output.

cancellationTokenCancellationToken

The cancellation token used to cancel the operation.

Overrides: FormatProviderBase<RadFlowDocument>.ExportOverride(RadFlowDocument, Stream, CancellationToken)

Converts the flow document to a fixed-layout document with a specified timeout and returns the resulting RadFixedDocument.

C#
public RadFixedDocument ExportToFixedDocument(RadFlowDocument document, TimeSpan? timeout)
Parameters:documentRadFlowDocument

The document.

timeoutTimeSpan?

The timeout after which the operation will be cancelled.

Returns:

RadFixedDocument

The fixed document.

Exceptions: ArgumentOutOfRangeException

The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.