Back to Devexpress

RichEditControl.ExportToPdf(String, PdfCreationOptions, PdfSaveOptions) Method

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-dot-exporttopdf-x28-system-dot-string-devexpress-dot-pdf-dot-pdfcreationoptions-devexpress-dot-pdf-dot-pdfsaveoptions-x29.md

latest2.6 KB
Original Source

RichEditControl.ExportToPdf(String, PdfCreationOptions, PdfSaveOptions) Method

OBSOLETE

Use the 'ExportToPdf' method instead.

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Exports the content of the RichEditControl to the specified stream in PDF format, applying options for creating and saving.

Namespace : DevExpress.Xpf.RichEdit

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

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
[Obsolete("Use the 'RichEditControl.ExportToPdf(string fileName, PdfExportOptions pdfExportOptions)' method instead.", false)]
public void ExportToPdf(
    string fileName,
    PdfCreationOptions creationOptions,
    PdfSaveOptions saveOptions
)
vb
<Obsolete("Use the 'RichEditControl.ExportToPdf(string fileName, PdfExportOptions pdfExportOptions)' method instead.", False)>
Public Sub ExportToPdf(
    fileName As String,
    creationOptions As PdfCreationOptions,
    saveOptions As PdfSaveOptions
)

Parameters

NameTypeDescription
fileNameString

A string that is the name of the file to which the created document is exported.

| | creationOptions | PdfCreationOptions |

A PdfCreationOptions object.

| | saveOptions | PdfSaveOptions |

A PdfSaveOptions object.

|

Remarks

PDF Export features and limitations are detailed in the Export to PDF document.

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace