Skip to content

Commit 26e1603

Browse files
committed
982436: Update UG Documentation for Secure Word Import and Export Header Support in Blazor
1 parent e7fe704 commit 26e1603

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

blazor/rich-text-editor/import-export.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ N> [View Sample in GitHub](https://github.com/SyncfusionExamples/blazor-rich-tex
424424

425425
## Secure Exported PDF/Word with Authentication
426426

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.
428428

429429
The following example demonstrates how to pass authentication tokens and custom data during export:
430430

@@ -448,7 +448,7 @@ The following example demonstrates how to pass authentication tokens and custom
448448
};
449449
private void Export(ExportingEventArgs args)
450450
{
451-
// Add different authentication tokens based on export type
451+
// Assign different authentication tokens depending on the export type (PDF or Word)
452452
var token = (args.ExportType == "Pdf" ? "Pdf Bearer token" : "Word Bearer token");
453453
args.CurrentRequest = new Dictionary<string, string>
454454
{
@@ -475,14 +475,14 @@ using System.Collections.Generic;
475475
using Microsoft.AspNetCore.Hosting;
476476
using Microsoft.AspNetCore.Http.Features;
477477

478-
namespace WordUpload.Controllers
478+
namespace ExportService.Controllers
479479
{
480480
[ApiController]
481-
public class WordController : ControllerBase
481+
public class ExportController : ControllerBase
482482
{
483483
private readonly IWebHostEnvironment hostingEnv;
484484

485-
public WordController(IWebHostEnvironment env)
485+
public ExportController(IWebHostEnvironment env)
486486
{
487487
this.hostingEnv = env;
488488
}

0 commit comments

Comments
 (0)