Available for: UI for ASP.NET MVC | UI for ASP.NET AJAX | UI for Blazor | UI for WPF | UI for WinForms | UI for Xamarin | UI for WinUI | UI for ASP.NET Core | UI for .NET MAUI

New to Telerik Document Processing? Download free 30-day trial

Settings

RtfFormatProvider allows for import of RTF documents and respectively export of RadFlowDocument to RTF. Additionally, the import/export settings provide modification options. The current article outlines the available settings.

Export Settings

The export settings which you can specify are as follows:

ExportImagesInCompatibilityMode

Specifies if the images should be exported in compatibility mode. This option is convenient when the exported document is going to be consumed by older RTF readers.

The default value for this setting is false.

The code from Example 1 demonstrates how you can create and specify particular export settings to RtfFormatProvider.

Example 1: Create a RtfExportSettings

RtfFormatProvider provider = new RtfFormatProvider(); 
RtfExportSettings exportSettings = new RtfExportSettings(); 
exportSettings.ExportImagesInCompatibilityMode = true; 
provider.ExportSettings = exportSettings; 
In this article