PdfFormatProvider
Exports flow documents to PDF format by converting them to fixed-layout documents; import is not supported.
Definition
Namespace:Telerik.Documents.Flow.FormatProviders.Pdf
Assembly:Telerik.Windows.Documents.Flow.FormatProviders.Pdf.dll
Syntax:
public class PdfFormatProvider : BinaryFormatProviderBase<RadFlowDocument>, IFormatProvider<RadFlowDocument>, IBinaryFormatProvider<RadFlowDocument>
Inheritance: objectFormatProviderBase<RadFlowDocument>BinaryFormatProviderBase<RadFlowDocument>PdfFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the PdfFormatProvider class.
public PdfFormatProvider()
Properties
Gets a value indicating whether this format provider can export documents, which is always true for PDF.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether this format provider can import documents, which is always false for PDF.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Gets or sets the export settings that control numbering field precision and extensibility options during PDF generation.
public PdfExportSettings ExportSettings { get; set; }
The export settings.
Gets the file extensions supported by this provider, which includes .pdf only.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Exports the specified document.
protected override void ExportOverride(RadFlowDocument document, Stream output, CancellationToken cancellationToken)
The document.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Converts the flow document to a fixed-layout document with a specified timeout and returns the resulting RadFixedDocument.
public RadFixedDocument ExportToFixedDocument(RadFlowDocument document, TimeSpan? timeout)
The document.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:The fixed document.
Exceptions: ArgumentOutOfRangeExceptionThe 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.