You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/rich-text-editor/import-export.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,7 +424,7 @@ N> [View Sample in GitHub](https://github.com/SyncfusionExamples/blazor-rich-tex
424
424
425
425
## Secure Exported PDF/Word with Authentication
426
426
427
-
You can add additional data while exporting a Word document or PDF from the Rich Text Editor on the client side, which can be received on the server side. By using the `OnExport` event and its `CurrentRequest` and `CustomFormData` properties, you can pass authentication tokens and parameters to the controller action. On the server side, you can fetch the authentication token from the request headers and retrieve the custom form data from the request body, which retrieves the values sent using the POST method.
427
+
You can include custom data when exporting Word or PDF documents, such as authentication tokens or other parameters. Use the OnExport event with its `CurrentRequest` and `CustomFormData` properties to send these values to the server. On the server side, the authentication token can be read from the request headers, and the custom data can be accessed from the request body, which contains the values sent via a POST request.
428
428
429
429
The following example demonstrates how to pass authentication tokens and custom data during export:
430
430
@@ -448,7 +448,7 @@ The following example demonstrates how to pass authentication tokens and custom
448
448
};
449
449
private void Export(ExportingEventArgs args)
450
450
{
451
-
// Add different authentication tokens based on export type
451
+
// Assign different authentication tokens depending on the export type (PDF or Word)
0 commit comments