ASPxClientRichEdit.DownloadPdf Method
Downloads the current document as a PDF file.
#Declaration
DownloadPdf(fileName?: string, options?: ((pdfDocument: any) => void) | {
modifyPdfDocument?: (pdfDocument: any) => void;
modifyPdfPage?: (pdfDocument: any) => void;
}): void
#Parameters
Name | Type | Description |
---|---|---|
file |
string | The name of the downloaded document. |
options | (pdf |
A function that allows you to modify the PDF document before it is downloaded; or an object that contains modify |
#Remarks
The downloadPdf method exports the document to the Portable Document Format (PDF) and downloads it to a local machine.
You can write a function to modify each page after it is exported (modifyPdfPage), or modify the document after the export is completed (modifyPdfDocument). The pdfDocument parameter is an object of the PDFKit library. If an export fails, the parameter returns null
.
Important
If you use the Download