Skip to main content
A newer version of this page is available. .

RichEditDocumentServer.ExportToPdf(String, PdfExportOptions) Method

Exports the content of the RichEditControl to the specified file path in PDF format, applying PDF-specific options.

Namespace: DevExpress.XtraRichEdit

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

Declaration

public virtual void ExportToPdf(
    string fileName,
    PdfExportOptions pdfExportOptions
)

Parameters

Name Type Description
fileName String

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

pdfExportOptions PdfExportOptions

A PdfExportOptions object which specifies the PDF export options.

Remarks

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

Note

Azure Compatibility If an application is hosted on Microsoft Azure, set the AzureCompatibility.Enable property to true. Refer to the How to resolve issues with unexpected output content of Printing, Reporting, RichEditDocumentServer, PDF libraries on Azure Web Site article for more information.

See Also