Back to Devexpress

RichEditControlCompatibility.EnableLegacyPdfExport Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditcontrolcompatibility-292bf786.md

latest2.3 KB
Original Source

RichEditControlCompatibility.EnableLegacyPdfExport Property

Allows you to use obsolete PDF export implemented in earlier versions. Not supported in .NET 8+.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
public static bool EnableLegacyPdfExport { get; set; }
vb
<DefaultValue(False)>
Public Shared Property EnableLegacyPdfExport As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to use PDF export based on the Printing System functionality; otherwise, false.

|

Remarks

If any concerns arise that a newer Rich Text Editor version exports the document to PDF in a manner different from earlier versions, and the newer image is of inferior quality, set the EnableLegacyPdfExport property to true to fall back to the former PDF export technique.

csharp
using DevExpress.XtraRichEdit;

RichEditControlCompatibility.EnableLegacyPdfExport = true;
vb
Imports DevExpress.XtraRichEdit

RichEditControlCompatibility.EnableLegacyPdfExport = True

Word Processing Document API does not support PDF export based on the Printing System functionality in .NET 8+. The EnableLegacyPdfExport property does not change the current PDF export engine.

See Also

RichEditControlCompatibility Class

RichEditControlCompatibility Members

DevExpress.XtraRichEdit Namespace