Skip to content

Commit 0570ff8

Browse files
Merge pull request #2185 from syncfusion-content/1008834-blaz-hf
1008834: Changes for the getting started documentation for PDF Viewer…
2 parents 9a70e00 + b98ba9e commit 0570ff8

5 files changed

Lines changed: 41 additions & 13 deletions

File tree

Document-Processing/PDF/PDF-Viewer/asp-net-core/getting-started-with-server-backed.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ For production apps, ensure that a valid Syncfusion license key is registered in
3131

3232
## ASP.NET Core PDF Viewer NuGet package installation
3333

34-
To add the ASP.NET Core PDF Viewer control, the following NuGet package needs to be installed in the ASP.NET Core application:
34+
To add `ASP.NET Core` controls in the application, open the NuGet package manager in Visual Studio (Tools → NuGet Package Manager → Manage NuGet Packages for Solution), search for [Syncfusion.EJ2.AspNet.Core](https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/) and then install it. Alternatively, you can utilize the following package manager command to achieve the same.
3535

36-
* Use [Syncfusion.EJ2.AspNet.Core](https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/)
36+
{% tabs %}
37+
{% highlight C# tabtitle="Package Manager" %}
38+
39+
Install-Package Syncfusion.EJ2.AspNet.Core -Version {{ site.releaseversion }}
40+
41+
{% endhighlight %}
42+
{% endtabs %}
3743

3844
## Add Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Tag Helper
3945

Document-Processing/PDF/PDF-Viewer/asp-net-core/getting-started.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ This guide explains how to integrate the ASP.NET Core PDF Viewer control into an
2929

3030
## ASP.NET Core PDF Viewer NuGet package installation
3131

32-
To add the ASP.NET Core PDF Viewer control, install the following NuGet package in the ASP.NET Core application:
32+
To add `ASP.NET Core` controls in the application, open the NuGet package manager in Visual Studio (Tools → NuGet Package Manager → Manage NuGet Packages for Solution), search for [Syncfusion.EJ2.AspNet.Core](https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/) and then install it. Alternatively, you can utilize the following package manager command to achieve the same.
3333

34-
* [Syncfusion.EJ2.AspNet.Core](https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/)
34+
{% tabs %}
35+
{% highlight C# tabtitle="Package Manager" %}
36+
37+
Install-Package Syncfusion.EJ2.AspNet.Core -Version {{ site.releaseversion }}
38+
39+
{% endhighlight %}
40+
{% endtabs %}
3541

3642
## Add Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Tag Helper
3743

Document-Processing/PDF/PDF-Viewer/blazor/getting-started/web-app.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ N> Syncfusion&reg; uses [SkiaSharp.Views.Blazor](https://www.nuget.org/packages/
116116
{% tabs %}
117117
{% highlight razor tabtitle="~/_Imports.razor" %}
118118

119-
@using Syncfusion.Blazor;
120-
@using Syncfusion.Blazor.SfPdfViewer;
119+
@using Syncfusion.Blazor
120+
@using Syncfusion.Blazor.SfPdfViewer
121121

122122
{% endhighlight %}
123123
{% endtabs %}
@@ -281,6 +281,7 @@ N> If the interactivity location is set to Global and the render mode is set to
281281
{% endtabs %}
282282

283283
N> If the interactivity location is set to Global, a render mode does not need to be specified per page. The interactivity mode applies to the entire app.
284+
<br />Enable interactivity only via client-side rendering (CSR) by using the WebAssembly or Auto option
284285

285286
Add the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer component in the **~/Pages/Index.razor** file.
286287

@@ -304,7 +305,7 @@ Run the application to display the PDF file in the Syncfusion&reg; Blazor PDF Vi
304305

305306
{% previewsample "https://blazorplayground.syncfusion.com/embed/hZVzNWqXLSZpnuzc?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor Web App SfPdfViewer rendering in browser](gettingstarted-images/blazor-pdfviewer.png)" %}
306307

307-
N> [View the sample on GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PDFViewer2/NET10/PDFViewer2_WebApp).
308+
N> [View the sample on GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PDFViewer2/NET10/PDFViewer2_WebAppServerMode).
308309

309310
## See also
310311

Document-Processing/PDF/PDF-Viewer/blazor/getting-started/web-assembly-application.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ N> Syncfusion&reg; Blazor components are available on [nuget.org](https://www.nu
104104
{% tabs %}
105105
{% highlight razor tabtitle="~/_Imports.razor" %}
106106

107-
@using Syncfusion.Blazor;
108-
@using Syncfusion.Blazor.SfPdfViewer;
107+
@using Syncfusion.Blazor
108+
@using Syncfusion.Blazor.SfPdfViewer
109109

110110
{% endhighlight %}
111111
{% endtabs %}
@@ -177,6 +177,8 @@ Run the application to display the PDF file in the Syncfusion&reg; Blazor PDF Vi
177177

178178
{% previewsample "https://blazorplayground.syncfusion.com/embed/hZVzNWqXLSZpnuzc?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor WebAssembly SfPdfViewer rendering in browser](gettingstarted-images/blazor-pdfviewer.png)" %}
179179

180+
N> [View the sample on GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-Started-Examples/tree/main/PDFViewer2/NET10/PDFViewer2_WasmStandalone).
181+
180182
## See also
181183

182184
* [Getting started with the Blazor PDF Viewer in a Blazor Web app Server app](./web-app)

Document-Processing/PDF/Smart-PDF-Viewer/blazor/getting-started/web-app.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Import the [Syncfusion.Blazor](https://help.syncfusion.com/cr/blazor/Syncfusion.
117117
If the **Interactive Render Mode** is set to `Server`, the project contains a single **~/Program.cs** file. Register the Syncfusion<sup style="font-size:70%">&reg;</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.
118118

119119
{% tabs %}
120-
{% highlight c# tabtitle="~/Program.cs" hl_lines="5 7 10" %}
120+
{% highlight c# tabtitle="~/Program.cs" hl_lines="1 5 7 10" %}
121121

122122
using Syncfusion.Blazor;
123123

@@ -165,12 +165,12 @@ dotnet add package Microsoft.Extensions.AI.OpenAI --version 9.8.0-preview.1.2541
165165
To configure the AI service, add the following settings to the **~/Program.cs** file in the Blazor Server app.
166166

167167
{% tabs %}
168-
{% highlight C# tabtitle="~/Program.cs" hl_lines="10 11 12 13 14 15 17" %}
168+
{% highlight C# tabtitle="~/Program.cs" hl_lines="3 4 5 6 10 11 12 13 14 15 17" %}
169169

170-
using Azure.AI.OpenAI;
171-
using Microsoft.Extensions.AI;
172170
using Sample.Components;
173171
using Syncfusion.Blazor;
172+
using Azure.AI.OpenAI;
173+
using Microsoft.Extensions.AI;
174174
using Syncfusion.Blazor.AI;
175175
using System.ClientModel;
176176

@@ -306,6 +306,19 @@ N> Review the [Blazor Themes](https://blazor.syncfusion.com/documentation/appear
306306

307307
## Add Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart PDF Viewer component
308308

309+
N> If the interactivity location is set to Global and the render mode is set to Auto, WebAssembly, or Server, the render mode is configured in the App.razor file by default.
310+
311+
If the interactivity location is set to Per page/component, define a render mode at the top of the ~Pages/.razor component as follows:
312+
313+
{% tabs %}
314+
{% highlight razor %}
315+
316+
@* Your App render mode define here *@
317+
@rendermode InteractiveServer
318+
319+
{% endhighlight %}
320+
{% endtabs %}
321+
309322
Add the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart PDF Viewer component in the **~Pages/Home.razor** file.
310323

311324
{% tabs %}

0 commit comments

Comments
 (0)