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: Document-Processing/PDF/Smart-PDF-Viewer/blazor/document-summarizer.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -371,7 +371,7 @@ N> [View sample in GitHub](https://github.com/SyncfusionExamples/blazor-smart-pd
371
371
372
372
## Integration Notes
373
373
374
-
To apply these templates, include them within the [`AssistViewSettings`]((https://help.syncfusion.com//cr/blazor/Syncfusion.Blazor.SmartPdfViewer.AssistViewSettings.html)) of the [`SfSmartPdfViewer`](https://help.syncfusion.com//cr/blazor/Syncfusion.Blazor.SmartPdfViewer.SfSmartPdfViewer.html).
374
+
To apply these templates, include them within the [AssistViewSettings]((https://help.syncfusion.com//cr/blazor/Syncfusion.Blazor.SmartPdfViewer.AssistViewSettings.html)) of the [SfSmartPdfViewer](https://help.syncfusion.com//cr/blazor/Syncfusion.Blazor.SmartPdfViewer.SfSmartPdfViewer.html).
Copy file name to clipboardExpand all lines: Document-Processing/PDF/Smart-PDF-Viewer/blazor/faqs/how-to-use-user-token-with-custom-ai-service.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ After completing this setup, you can:
28
28
The `UserTokenService` is responsible for generating and managing per-user quotas. These tokens are used to authenticate and throttle requests to the custom Azure OpenAI service based on user identity.
29
29
30
30
### Implementation Steps
31
-
1. Create a new class file named `UserTokenService.cs` in your project
31
+
1. Create a new class file named **UserTokenService.cs** in your project
32
32
2. Add the following implementation:
33
33
34
34
{% tabs %}
@@ -156,7 +156,7 @@ public class UserTokenInfo
156
156
## Step 2: Implement User Token API Controller
157
157
The `UserTokensController` class exposes endpoints to check and update user tokens. This enables secure and dynamic quota tracking for users interacting with the custom Azure OpenAI service.
158
158
159
-
1. Create a new class file named `UserTokensController.cs` in your project
159
+
1. Create a new class file named **UserTokensController.cs** in your project
160
160
2. Add the following implementation:
161
161
162
162
{% tabs %}
@@ -215,7 +215,7 @@ The Syncfusion Smart PDF Viewer is designed to work with different AI backends t
215
215
216
216
The `IChatInferenceService` interface is the bridge between Syncfusion Smart PDF Viewer and AI services:
217
217
218
-
1. Create a new file named `AzureAIService.cs`
218
+
1. Create a new file named **AzureAIService.cs**
219
219
2. Add the following implementation:
220
220
221
221
{% tabs %}
@@ -324,13 +324,13 @@ public class AzureAIService : IChatInferenceService
324
324
{% endhighlight %}
325
325
{% endtabs %}
326
326
327
-
## Step 4: Add a script file to your application and refer it to the head tag.
327
+
## Step 4: Add a script file to your application and refer it to the body tag.
@@ -67,7 +67,6 @@ For example, in a Blazor Web App with the `Server` interactive render mode, use
67
67
68
68
dotnet new blazor -o BlazorWebApp -int Server
69
69
cd BlazorWebApp
70
-
cd BlazorWebApp.Client
71
70
72
71
{% endhighlight %}
73
72
{% endtabs %}
@@ -83,10 +82,10 @@ When using the `Server` render mode in a Blazor Web App, install the Syncfusion<
83
82
* Run the following commands to install `Syncfusion.Blazor.SfSmartPdfViewer` and [Syncfusion.Blazor.Themes](https://www.nuget.org/packages/Syncfusion.Blazor.Themes/), then restore the solution.
@@ -118,7 +117,7 @@ Import the [Syncfusion.Blazor](https://help.syncfusion.com/cr/blazor/Syncfusion.
118
117
If the **Interactive Render Mode** is set to `Server`, the project contains a single **~/Program.cs** file. Register the Syncfusion<supstyle="font-size:70%">®</sup> Blazor service in that **~/Program.cs** file. The configured SignalR maximum message size and memory cache support large document streaming and caching for better performance. Ensure the Syncfusion license is registered during application startup.
119
118
120
119
{% tabs %}
121
-
{% highlight razor tabtitle="Blazor Server App" hl_lines="5 7 10" %}
The theme stylesheet and script can be accessed from NuGet through [Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets). Include the stylesheet reference in the `<head>` section and the script reference at the end of the `<body>` in the ~/Components/App.razor file as shown below.
N> Review the [Blazor Themes](https://blazor.syncfusion.com/documentation/appearance/themes) topic to discover various methods ([Static Web Assets](https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets), [CDN](https://blazor.syncfusion.com/documentation/appearance/themes#cdn-reference), and [CRG](https://blazor.syncfusion.com/documentation/common/custom-resource-generator)) for referencing themes in a Blazor application. Also see [Adding script reference](https://blazor.syncfusion.com/documentation/common/adding-script-references) for different approaches to include scripts.
@@ -184,7 +184,7 @@ For **Azure OpenAI**, first [deploy an Azure OpenAI Service resource and model](
184
184
* Inside wwwroot, create an index.html host page for the Blazor UI. This host page is required by BlazorWebView to initialize the Blazor runtime and load static assets (themes and scripts). A basic index.html might look like the following:
185
185
186
186
{% tabs %}
187
-
{% highlight html tabtitle="wwwroot/index.html" hl_lines="8 13" %}
187
+
{% highlight html tabtitle="index.html" hl_lines="8 13" %}
0 commit comments