Extending the PDF exporting with PdfFormatProvider
Environment
Product | RadEditor for ASP.NET AJAX |
Description
Here you can find an example project showing how to extend the RadEditor built-in PDF exporting, by creating a RadEditorExportTemplate abstract class and integrating the PdfFormatProvider.
Solution
This blog post — Using an external library for the export to PDF functionality in Telerik’s ASP.NET Editor best illustrates how to implement a custom RadEditorExportTemplate for your needs. What you need further is to use the new PdfFormatProvider, which enables you to convert RadFlowDocument to RadFixedFocument.
Required Additional Assemblies:
- Telerik.Windows.Documents.Core
- Telerik.Windows.Documents.Fixed
- Telerik.Windows.Documents.Flow
- Telerik.Windows.Documents.Flow.FormatProviders.Pdf
- Telerik.Windows.Zip
Note: The assemblies are not included, make sure to add references for Telerik.Web.UI and the required assemblies.