New to Telerik Document ProcessingStart a free 30-day trial

Using PdfFormatProvider

Updated on Sep 8, 2026

Telerik Document Processing includes the PdfFormatProvider class in RadWordsProcessing for exporting RadFlowDocument instances to PDF.

To use PdfFormatProvider, reference the following packages:

  • Telerik.Documents.Core
  • Telerik.Documents.Flow
  • Telerik.Documents.Flow.FormatProviders.Pdf
  • Telerik.Documents.Fixed

If your project uses the Windows-only package family, use the corresponding Telerik.Windows.Documents.* package names instead.

Starting with Q2 2025, the ZipLibrary is no longer used as an internal dependency in the rest of the Document Processing Libraries—PdfProcessing, WordsProcessing, SpreadProcessing, SpreadStreamProcessing. It is replaced by System.IO.Compression. The Telerik Zip Library continues to ship as a standalone library so you can still use it separately.

Export

To export a document to PDF, use the Export() method of PdfFormatProvider. The provider is in the Telerik.Documents.Flow.FormatProviders.Pdf namespace and exposes a PdfExportSettings instance through its ExportSettings property.

In .NET Standard, PdfFormatProvider needs access to font data before it can embed fonts in the PDF file. Provide an implementation of the FontsProviderBase abstract class and assign it to the FontsProvider property of FixedExtensibilityManager. Also set the JpegImageConverter property of FixedExtensibilityManager when you export images other than JPEG and JPEG 2000, or when ImageQuality is not High. For more information, see how cross-platform support works in RadPdfProcessing.

The code snippet in Example 1 shows how to create a PdfFormatProvider instance and use it to export a RadFlowDocument to a file.

Example 1: Create a PdfFormatProvider and export a RadFlowDocument to a sample.pdf file stream

C#
Telerik.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
using (Stream output = File.OpenWrite("sample.pdf"))
{
    RadFlowDocument document = CreateRadFlowDocument();

    provider.Export(document, output, TimeSpan.FromSeconds(10));
}

The method produces a PDF document that you can open in any PDF viewer.

Example 2 shows how to export a RadFlowDocument directly to a RadFixedDocument through the ExportToFixedDocument() method.

Example 2: Export a RadFlowDocument directly to a RadFixedDocument instance

C#
RadFlowDocument document = CreateRadFlowDocument();

Telerik.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();

RadFixedDocument fixedDocument = provider.ExportToFixedDocument(document, TimeSpan.FromSeconds(10));

RadFixedDocument is the main document model in RadPdfProcessing. For more information, see the RadPdfProcessing overview.

See Also

In this article
ExportSee Also
Not finding the help you need?
Contact Support