Back to Devexpress

RichEditControl.ExportToPdf(String) Method

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

latest1.9 KB
Original Source

RichEditControl.ExportToPdf(String) Method

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 document content to the specified file path in PDF format.

Namespace : DevExpress.Xpf.RichEdit

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

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public void ExportToPdf(
    string fileName
)
vb
Public Sub ExportToPdf(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

A String which specifies the file name (including the full path) for the created PDF file.

|

Remarks

The following code snippet exports the RichEditControl’s document to the PDF file:

csharp
richeditControl1.ExportToPdf("Exported_String_Options_Document.pdf");
vb
richeditControl1.ExportToPdf("Exported_String_Options_Document.pdf")

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

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace