All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxClientRichEdit.ExportToPdf Method

Exports the current document to PDF and invokes the PdfExported event.

Declaration

ExportToPdf(options?: ((pdfDocument: any) => void) | {
    modifyPdfDocument?: (pdfDocument: any) => void;
    modifyPdfPage?: (pdfDocument: any) => void;
}): void

Parameters

Name Type
options (pdfDocument: any) => void | {modifyPdfDocument: (pdfDocument: any) => void, modifyPdfPage: (pdfDocument: any) => void}

Remarks

The ExportToPdf method exports the current document to portable document format (PDF). If you want to modify the exported file before further processing, pass a function as the parameter. The function's parameter is a PDFDocument object defined in the PDFKit library.

The control invokes the PdfExported event. Handle it to save the exported document. To access the PDF file, use the Base64 parameter.

IMPORTANT

If you use the ExportToPdf method, you should provide a list of available fonts and their sources to be uploaded to the client.

TIP

Use the DownloadPdf method to download the current document as PDF file.

See Also