Skip to content

Commit c2cc3c9

Browse files
committed
Merge branch 'hotfix/hotfix-v31.1.17' of https://github.com/syncfusion-content/document-processing-docs into 980386-updated-nuget-version-powerpoint
2 parents 2f30988 + e96bbd0 commit c2cc3c9

19 files changed

+2288
-1154
lines changed

Document-Processing-toc.html

Lines changed: 1483 additions & 789 deletions
Large diffs are not rendered by default.

Document-Processing/PDF/Conversions/HTML-To-PDF/NET/blazor.md

Lines changed: 53 additions & 61 deletions
Large diffs are not rendered by default.

Document-Processing/PDF/PDF-Library/NET/Create-PDF-document-in-Blazor.md

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ description: Learn how to create or generate a PDF file in Blazor applications w
44
platform: document-processing
55
control: PDF
66
documentation: UG
7+
keywords: blazor pdf, pdf generation, document creation, blazor server, blazor wasm, pdf library
78
---
89

910
# Create or Generate PDF file in Blazor
1011

11-
The Syncfusion<sup>&reg;</sup> [Blazor PDF library](https://www.syncfusion.com/document-processing/pdf-framework/blazor/pdf-library) is used to create, read, and edit PDF documents. This library also offers functionality to merge, split, stamp, forms, and secure PDF files.
12+
The Syncfusion<sup>&reg;</sup> [Blazor PDF library](https://www.syncfusion.com/document-processing/pdf-framework/blazor/pdf-library) creates, reads, and edits PDF documents. This library also offers functionality to merge, split, stamp, forms, and secure PDF files.
1213

13-
To include the Syncfusion<sup>&reg;</sup> Blazor PDF library into your Blazor application, please refer to the [NuGet Package Required](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/nuget-packages-required) or [Assemblies Required](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/assemblies-required) documentation.
14+
To include the Syncfusion<sup>&reg;</sup> Blazor PDF library into Blazor applications, refer to the [NuGet Package Required](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/nuget-packages-required) or [Assemblies Required](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/assemblies-required) documentation.
1415

1516
To quickly get started with creating a PDF document in Blazor, check this video:
1617
{% youtube "https://www.youtube.com/watch?v=B5BOBwus0Jc&t=2s" %}
@@ -31,20 +32,18 @@ To quickly get started with creating a PDF document in Blazor, check this video:
3132
{% endtabcontent %}
3233
{% endtabcontents %}
3334

34-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/ServerSideApplication).
35+
A complete working sample is available from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/ServerSideApplication).
3536

36-
By executing the program, you will get the following output in the browser.
37+
The following output appears in the browser after executing the program.
3738
![Blazor server side browser window](Create-PDF-Blazor/Blazor_browser_output.png)
3839

39-
Click the Export to PDF button, and you will get the PDF document with the following output.
40+
Click the Export to PDF button to obtain the PDF document with the following output.
4041
![Blazor server side output PDF document](Create-PDF-Blazor/Blazor_PDF_output.png)
4142

42-
N> It is recommended to use Blazor Server-Side application to reduce the pay back load which is high in Blazor Client-Side.
43+
N> Server-Side Blazor applications are recommended to reduce the payload, which is high in Blazor Client-Side applications.
4344

4445
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/blazor) to explore the rich set of Syncfusion<sup>&reg;</sup> PDF library features.
4546

46-
An online sample link to [create PDF document](https://blazor.syncfusion.com/demos/pdf/hello-world?theme=fluent) in Blazor.
47-
4847
## Steps to create PDF document in Blazor WASM application
4948

5049
{% tabcontents %}
@@ -61,18 +60,16 @@ An online sample link to [create PDF document](https://blazor.syncfusion.com/dem
6160
{% endtabcontent %}
6261
{% endtabcontents %}
6362

64-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/ClientSideApplication).
63+
A complete working sample is available from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/ClientSideApplication).
6564

66-
By executing the program, you will get the following output in the browser.
65+
The following output appears in the browser after executing the program.
6766
![Blazor client browser window](Create-PDF-Blazor/Blazor_Client_WebResult.png)
6867

69-
Click the Export to PDF button and you will get the PDF document with the following output.
68+
Click the Export to PDF button to obtain the PDF document with the following output.
7069
![Blazor getting started output PDF document](Create-PDF-Blazor/Blazor_PDF_output.png)
7170

7271
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/blazor) to explore the rich set of Syncfusion<sup>&reg;</sup> PDF library features.
7372

74-
An online sample link to [create PDF document](https://blazor.syncfusion.com/demos/pdf/hello-world?theme=fluent) in Blazor.
75-
7673
## Steps to create PDF documents in .NET MAUI Blazor application
7774

7875
{% tabcontents %}
@@ -89,13 +86,13 @@ An online sample link to [create PDF document](https://blazor.syncfusion.com/dem
8986
{% endtabcontent %}
9087
{% endtabcontents %}
9188

92-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/BlazorMauiAppCreatePdfSample).
89+
A complete working sample is available from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Getting%20Started/Blazor/BlazorMauiAppCreatePdfSample).
9390

94-
By running the program, you will see the output in the browser when you click the "Whether" option in the left-side menu.
91+
The following output appears in the browser when clicking the "Weather" option in the left-side menu.
9592
![Blazor client browser window](Create-PDF-Blazor/Maui_Blazor_browser_output.png)
9693

97-
Click the `Export to PDF` button to get the PDF document with the following output.
98-
![Blazor getting started output PDF document](Create-PDF-Blazor/Blazor_PDF_output.png)
94+
Click the `Export to PDF` button to obtain the PDF document with the following output.
95+
![Blazor getting started output PDF document](Create-PDF-Blazor/Blazor_PDF_output.png)
9996

10097
### Save the PDF document on different platforms
10198

@@ -114,9 +111,9 @@ Create a folder named `Services`, then add a class called `SaveService.cs` withi
114111

115112
{% endtabs %}
116113

117-
Now, we need to implement platform-specific code to save the PDF document.
114+
Platform-specific code implementation is required to save the PDF document across different platforms.
118115

119-
#### Andriod
116+
#### Android
120117
Create a new class file named `SaveAndroid.cs` within the Android folder and add the following code to enable file saving on the Android platform.
121118

122119
{% tabs %}
@@ -187,7 +184,7 @@ Create a new class file named `SaveAndroid.cs` within the Android folder and add
187184

188185
{% endtabs %}
189186

190-
N> Introduced a new runtime permission model for the Android SDK version 23 and above. So, include the following code for enabling the Android file provider to save and view the generated PDF document.
187+
N> The Android SDK version 23 and above introduced a new runtime permission model. Include the following code for enabling the Android file provider to save and view the generated PDF document.
191188

192189
1. Create a new XML file with the name of `file_paths.xml` under the Android project Resources/xml folder and add the following code in it.
193190

@@ -245,7 +242,7 @@ N> Introduced a new runtime permission model for the Android SDK version 23 and
245242

246243
{% endtabs %}
247244

248-
#### IOS
245+
#### iOS
249246
Create a new class file named `SaveIOS.cs` within the iOS folder and include the following code to enable file saving on the iOS platform.
250247

251248
{% tabs %}
@@ -286,8 +283,8 @@ Create a new class file named `SaveIOS.cs` within the iOS folder and include the
286283

287284
{% endtabs %}
288285

289-
#### MacOS
290-
Create a new class file named `SaveMac.cs` within the MacCatalyst folder and include the following code to enable file saving on the MacOS platform.
286+
#### macOS
287+
Create a new class file named `SaveMac.cs` within the MacCatalyst folder and include the following code to enable file saving on the macOS platform.
291288

292289
{% tabs %}
293290

@@ -452,6 +449,6 @@ Create a new class file named `SaveWindows.cs` within the Windows folder and inc
452449

453450
{% endtabs %}
454451

455-
The helper files mentioned above are available on [this](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-maui#helper-files-for-net-maui) page. You can refer to [this](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-maui#helper-files-for-net-maui) page for more details.
452+
The helper files mentioned above are available on [this](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-maui#helper-files-for-net-maui) page. Refer to [this](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-maui#helper-files-for-net-maui) page for more details.
456453

457454
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/blazor) to explore the rich set of Syncfusion<sup>&reg;</sup> PDF library features.

Document-Processing/PDF/PDF-Library/NET/Loading-and-saving-document/Open-and-save-PDF-document-in-Blazor.md

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@ keywords: blazor save pdf, blazor load pdf, c# save pdf, c# load pdf
99

1010
# Open and save PDF document in Blazor
1111

12-
The [Syncfusion<sup>&reg;</sup> Blazor PDF library](https://www.syncfusion.com/document-processing/pdf-framework/blazor) is used to create, read, and edit PDF documents programmatically without the dependency of Adobe Acrobat. Using this library, you can **open and save PDF document in ASP.NET Core**.
12+
The [Syncfusion<sup>&reg;</sup> Blazor PDF library](https://www.syncfusion.com/document-processing/pdf-framework/blazor) creates, reads, and edits PDF documents programmatically without the dependency of Adobe Acrobat. Using this library, **open and save PDF documents in ASP.NET Core**.
1313

1414
**Prerequisites:**
1515

16-
* Visual Studio 2019 Preview
17-
* Install the [.NET Core SDK 3.1 Preview](https://dotnet.microsoft.com/en-us/download/dotnet/3.1)
18-
19-
**Creating a Blazor project**
20-
21-
* Enable Visual Studio to use preview SDKs.
22-
* Open Tools > Options in the menu bar.
23-
* Open the Projects and Solutions node. Open the .NET Core tab.
24-
* Check the box for Use previews of the .NET Core SDK and click OK.
25-
* Restart the Visual Studio 2019.
16+
* Visual Studio 2022 or later
17+
* Install the [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or later
2618

2719
## Server app
2820

@@ -35,9 +27,9 @@ Step 2: In the **Interactive Render Mode section**, choose `Server` as the rende
3527
Step 3: To **open and save a PDF document in Blazor Server app**, install [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.pdf.Net.Core) to the Blazor project.
3628
![Install NuGet package](Images/Blazor_NuGet_package.png)
3729

38-
N> Starting with v16.2.0.x, if you reference Syncfusion<sup>&reg;</sup> assemblies from trial setup or from the NuGet feed, you also have to add "Syncfusion.Licensing" assembly reference and include a license key in your projects. Please refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion<sup>&reg;</sup> license key in your application to use our components.
30+
N> Starting with v16.2.0.x, if referencing Syncfusion<sup>&reg;</sup> assemblies from trial setup or from the NuGet feed, add "Syncfusion.Licensing" assembly reference and include a license key in projects. Refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to learn about registering Syncfusion<sup>&reg;</sup> license key in applications to use the components.
3931

40-
Step 4: Inject ExportService into `FetchData.razor` using the following code.
32+
Step 4: Inject ExportService into `FetchData.razor` using the following code.
4133

4234
{% tabs %}
4335
{% highlight c# tabtitle="C#" %}
@@ -94,7 +86,7 @@ using System.IO;
9486

9587
{% endtabs %}
9688

97-
Step 8: Register your service in the `ConfigureServices` method available in the `Startup.cs` class as follows.
89+
Step 8: Register the service in the `ConfigureServices` method available in the `Startup.cs` class as follows.
9890

9991
{% tabs %}
10092

@@ -228,9 +220,8 @@ Step 13: Add the following JavaScript function in the `_Host.cshtml` available u
228220

229221
{% endtabs %}
230222

231-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open%20and%20Save%20PDF%20document/Blazor/ServerSideApplication).
232-
233-
By executing the program, you will get the **PDF document** as follows.
223+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open%20and%20Save%20PDF%20document/Blazor/ServerSideApplication).A complete working sample is available from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open%20and%20Save%20PDF%20document/Blazor/ServerSideApplication).
224+
The following output appears after executing the program.
234225
![Blazor Server output PDF document](Images/Open_and_save_output.png)
235226

236227
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/blazor) to explore the rich set of Syncfusion<sup>&reg;</sup> PDF library features.
@@ -243,10 +234,10 @@ Step 1: Create a new C# Blazor server-side application project. Select **Blazor
243234
Step 2: In the **Interactive Render Mode section**, choose `WebAssembly` as the render mode. Then, click the `Create` button to generate a new Blazor client-Side Application.
244235
![Select Blazor WASM app](Images/Blazor-Web-Assembly.png)
245236

246-
Step 3: Install the [Syncfusion.PDF.Net.Core](https://www.nuget.org/packages/Syncfusion.pdf.Net.Core) NuGet package as a reference to your Blazor application from [NuGet.org](https://www.nuget.org/).
237+
Step 3: Install the [Syncfusion.PDF.Net.Core](https://www.nuget.org/packages/Syncfusion.pdf.Net.Core) NuGet package as a reference to the Blazor application from [NuGet.org](https://www.nuget.org/).
247238
![NuGet package installation](Images/Blazor_NuGet_package.png)
248239

249-
Step 4: Next, include the following namespaces in that `FetchData.razor` file.
240+
Step 4: Include the following namespaces in the `FetchData.razor` file.
250241

251242
{% tabs %}
252243

@@ -274,7 +265,7 @@ Step 5: Create a button in the `FetchData.razor` using the following code.
274265

275266
{% endtabs %}
276267

277-
Step 6: Create a new async method with name as ``LoadAndSavePDF`` and include the following code snippet to **open an existing PDF document in Blazor** WASM app.
268+
Step 6: Create a new async method with name as `LoadAndSavePDF` and include the following code snippet to **open an existing PDF document in Blazor** WASM app.
278269

279270
{% tabs %}
280271

@@ -391,13 +382,13 @@ Step 10: Add the following JavaScript function in the `index.html` available und
391382

392383
{% endtabs %}
393384

394-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open%20and%20Save%20PDF%20document/Blazor/ClientSideApplication).
385+
A complete working sample is available from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Open%20and%20Save%20PDF%20document/Blazor/ClientSideApplication).
395386

396-
By executing the program, you will get the **PDF document** as follows.
397-
![Blazor WASM output Word document](Images/Open_and_save_output.png)
387+
The following output appears after executing the program.
388+
![Blazor WASM output PDF document](Images/Open_and_save_output.png)
398389

399-
N> Even though PDF library works in WASM app, it is recommended to use server deployment. Since the WASM app deployment increases the application payload size.
390+
N> Even though PDF library works in WASM app, server deployment is recommended. Since the WASM app deployment increases the application payload size.
400391

401-
Kindly explore the [supported and unsupported features of PDF library in Blazor](https://www.syncfusion.com/document-processing/pdf-framework/blazor/pdf-library).
392+
Explore the [supported and unsupported features of PDF library in Blazor](https://www.syncfusion.com/document-processing/pdf-framework/blazor/pdf-library).
402393

403394
Click [here](https://www.syncfusion.com/document-processing/pdf-framework/blazor) to explore the rich set of Syncfusion<sup>&reg;</sup> PDF library features.

0 commit comments

Comments
 (0)