Skip to content

Commit 13f8693

Browse files
987332: Update Open File
1 parent 8b64190 commit 13f8693

File tree

6 files changed

+77
-73
lines changed

6 files changed

+77
-73
lines changed

Document-Processing/PDF/PDF-Viewer/asp-net-mvc/open-pdf-file/from-amazon-s3.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
22
layout: post
3-
title: AWS S3 in ASP.NET MVC Syncfusion PDF Viewer Component
4-
description: Learn here all about how to Open PDF files from AWS S3 in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more.
3+
title: Open PDF from AWS S3 in ASP.NET MVC PDF Viewer | Syncfusion
4+
description: Learn how to load PDFs from AWS S3 in the Syncfusion ASP.NET MVC PDF Viewer component using standalone and server-backed approaches.
55
platform: document-processing
66
control: PDF Viewer
77
publishingplatform: ASP.NET MVC
88
documentation: ug
99
---
1010

11-
# Open PDF file from AWS S3
11+
# Open PDF from AWS S3
1212

13-
PDF Viewer allows to load PDF file from AWS S3 using either the Standalone or Server-backed PDF Viewer. Below are the steps and a sample to demonstrate how to open a PDF from AWS S3.
13+
The ASP.NET MVC PDF Viewer component supports loading PDF files from AWS S3 using either the standalone or the server-backed PDF Viewer. The following steps demonstrate both approaches.
1414

15-
## Using Standalone PDF Viewer
15+
## Using the standalone PDF Viewer
1616

17-
To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below
17+
Follow these steps to load a PDF from AWS S3 in the standalone PDF Viewer.
1818

1919
**Step 1:** Create AWS S3 account
2020

21-
Set up an AWS S3 account by following the instructions on the official AWS site: [AWS Management Console](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html). Create an S3 bucket and generate access keys while ensuring secure storage of credentials.
21+
Set up an AWS S3 account by following the instructions on the official AWS site: [AWS Management Console](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html). Create an S3 bucket and generate access keys while ensuring secure storage of credentials.
2222

2323
**Step 2:** Create PDF Viewer Sample in ASP.NET MVC
2424

25-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/) to create a simple PDF Viewer sample in ASP.NET MVC.
25+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started) to create a simple PDF Viewer sample in ASP.NET MVC.
2626

2727
**Step 3:** Modify the `~/Views/Shared/_Layout.cshtml` File in the Project
2828

@@ -88,17 +88,17 @@ N> The **AWSSDK.S3** NuGet package must be installed in your application to use
8888

8989
[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-aws-s3/tree/master/Open%20and%20Save%20PDF%20in%20AWS%20S3%20using%20Standalone).
9090

91-
## Using Server-Backed PDF Viewer
91+
## Using the server-backed PDF Viewer
9292

93-
To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below
93+
Follow these steps to load a PDF from AWS S3 using the server-backed PDF Viewer.
9494

9595
**Step 1:** Create AWS S3 account
9696

9797
Set up an AWS S3 account by following the instructions on the official AWS site: [AWS Management Console](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html). Create an S3 bucket and generate access keys while ensuring secure storage of credentials.
9898

9999
**Step 2:** Create PDF Viewer Sample in ASP.NET MVC
100100

101-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/-with-server-backed#integrate-pdf-viewer-into-an-aspnet-mvc-application) to create a simple PDF Viewer sample in ASP.NET MVC.
101+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started) to create a simple PDF Viewer sample in ASP.NET MVC.
102102

103103
**Step 3:** Modify the `HomeController.cs` File in the Project
104104

@@ -158,9 +158,9 @@ using Amazon.S3.Model;
158158

159159
N> Replace **Your Access Key from AWS S3**, **Your Secret Key from AWS S3**, and **Your Bucket name from AWS S3** with your actual AWS access key, secret key and bucket name
160160

161-
**Step 4:** Set the PDF Viewer Properties in ASP.NET MVC PDF viewer component
161+
**Step 4:** Configure the PDF Viewer component
162162

163-
Set the `documentPath` property of the PDF viewer component to the desired name of the PDF file you wish to load from AWS S3. Ensure that you correctly pass the document name from the files available in your azure container to the documentPath property.
163+
Set the `documentPath` property of the PDF Viewer to the PDF file name to load from AWS S3. Ensure the document name matches an object in your bucket.
164164

165165
```csharp
166166

Document-Processing/PDF/PDF-Viewer/asp-net-mvc/open-pdf-file/from-azure-active-directory.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
layout: post
3-
title: Open PDF from AAD in EJ2 ASP.NET MVC PDF Viewer | Syncfusion
4-
description: Learn here all about How to Open Pdf From AAD in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more.
3+
title: Open PDF from Azure Active Directory in ASP.NET MVC PDF Viewer | Syncfusion
4+
description: Learn how to load and save PDFs using Azure Active Directory (AAD) with the Syncfusion ASP.NET MVC PDF Viewer component.
55
platform: document-processing
6-
control: Open PDF from AAD
6+
control: PDF Viewer
77
publishingplatform: ASP.NET MVC
88
documentation: ug
99
---
1010

11-
# Open PDF From Azure Active Directory in Viewer
11+
# Open PDF from Azure Active Directory
1212

13-
### **Overview**
13+
### Overview
1414

15-
The Syncfusion PDF Viewer allows you to load and save PDF files directly from Azure Active Directory (AAD). Below are the steps to securely load and store PDF documents from and to AAD using the PDF Viewer.
15+
The ASP.NET MVC PDF Viewer component supports loading and saving PDF files with Azure Active Directory (AAD). The following steps explain how to securely load and store PDFs using AAD.
1616

17-
### **Steps to Open the PDF File from Azure Active Directory**
17+
### Steps to open a PDF from Azure Active Directory
1818

1919
---
2020

21-
### **Step 1: Register an Application in Azure Active Directory (AAD)**
21+
### Step 1: Register an application in Azure Active Directory (AAD)
2222

2323
1. **Go to the Azure Portal**:
2424
- Navigate to [Azure Portal](https://portal.azure.com).
@@ -40,7 +40,7 @@ The Syncfusion PDF Viewer allows you to load and save PDF files directly from Az
4040

4141
---
4242

43-
### **Step 2: Create the Azure Storage Account**
43+
### Step 2: Create the Azure Storage account
4444

4545
1. **Create a Storage Account**:
4646
- In the Azure portal, use the search bar to search for **Storage accounts**.
@@ -50,7 +50,7 @@ The Syncfusion PDF Viewer allows you to load and save PDF files directly from Az
5050

5151
---
5252

53-
### **Step 3: Assign Role to the Application**
53+
### Step 3: Assign a role to the application
5454

5555
1. **Go to your Storage Account**:
5656
- Navigate to **Access control (IAM)** > **Add role assignment** in your Azure Storage Account.
@@ -65,7 +65,7 @@ The Syncfusion PDF Viewer allows you to load and save PDF files directly from Az
6565
![add-role](../images/add-role.png)
6666
---
6767

68-
### **Step 4: Upload the PDF Document to the Azure Storage Account**
68+
### Step 4: Upload the PDF to Azure Storage
6969

7070
1. **Navigate to Data Storage**:
7171
- In the Azure portal, go to **Data storage** > **Containers**.
@@ -76,8 +76,8 @@ The Syncfusion PDF Viewer allows you to load and save PDF files directly from Az
7676
![upload-pdf](../images/upload-pdf.png)
7777
---
7878

79-
### **Step 5: ASP.NET MVC PDF Viewer Control Configuration**
80-
1. Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/-with-server-backed) to create a simple PDF Viewer sample.
79+
### Step 5: Server-side configuration
80+
1. Follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started-with-server-backed) to create a simple PDF Viewer sample.
8181

8282
2. Add the following code snippet in `HomeController.cs`.
8383

@@ -135,8 +135,8 @@ public async Task<ActionResult> SaveToAAD(jsonObjects responseData)
135135
{% endhighlight %}
136136
{% endtabs %}
137137

138-
3. Configure Server-Side Code:
139-
- Open the server-side application (e.g., ASP.NET Core) and configure the following details in the `PdfViewerController` file:
138+
3. Configure server-side code:
139+
- Open the server-side application (e.g., ASP.NET MVC) and configure the following details in the `PdfViewerController` file:
140140
- `tenantId` (your Azure AD tenant ID),
141141
- `clientId` (your registered application client ID),
142142
- `clientSecret` (your registered application client secret),

Document-Processing/PDF/PDF-Viewer/asp-net-mvc/open-pdf-file/from-azure-blob-storage.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
22
layout: post
3-
title: Open PDF from Azure Blob Storage in ASP.NET MVC PdfViewer | Syncfusion
4-
description: Learn here all about how to Open PDF files from Azure Blob Storage in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more.
3+
title: Open PDF from Azure Blob Storage in ASP.NET MVC PDF Viewer | Syncfusion
4+
description: Learn how to load PDFs from Azure Blob Storage in the Syncfusion ASP.NET MVC PDF Viewer component using standalone and server-backed approaches.
55
platform: document-processing
66
control: PDF Viewer
77
publishingplatform: ASP.NET MVC
88
documentation: ug
99
---
1010

11-
# Open PDF file from Azure Blob Storage
11+
# Open PDF from Azure Blob Storage
1212

13-
PDF Viewer allows to load PDF file from Azure Blob Storage using either the Standalone or Server-backed PDF Viewer. Below are the steps and a sample to demonstrate how to open a PDF from Azure Blob Storage.
13+
The ASP.NET MVC PDF Viewer component supports loading PDF files from Azure Blob Storage using either the standalone or the server-backed PDF Viewer. The following steps demonstrate both approaches.
1414

15-
## Using Standalone PDF Viewer
15+
## Using the standalone PDF Viewer
1616

17-
To load a PDF file from Azure Blob Storage in a PDF Viewer, you can follow the steps below
17+
Follow these steps to load a PDF from Azure Blob Storage in the standalone PDF Viewer.
1818

1919
**Step 1:** Create the Azure Blob Storage account
2020

2121
Log in to the Azure Portal. Create a new Storage Account with preferred settings. Note access keys during the setup. Within the Storage Account, create a Blob Container following the steps in this [link](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=azure-portal).
2222

2323
**Step 2:** Create PDF Viewer Sample in ASP.NET MVC
2424

25-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/-with-server-backed#integrate-pdf-viewer-into-an-aspnet-mvc-application) to create a simple PDF Viewer sample in ASP.NET MVC.
25+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started-with-server-backed) to create a simple PDF Viewer sample in ASP.NET MVC.
2626

2727
**Step 3:** Modify the `Views/Home/index.cshtml` File in the Project
2828

@@ -97,17 +97,17 @@ function blobToBase64(blob) {
9797

9898
[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-azure-blob-storage/tree/master/Open%20and%20Save%20PDF%20in%20Azure%20Blob%20Storage%20using%20Standalone).
9999

100-
## Using Server-Backed PDF Viewer
100+
## Using the server-backed PDF Viewer
101101

102-
To load a PDF file from Azure Blob Storage in a PDF Viewer, you can follow the steps below
102+
Follow these steps to load a PDF from Azure Blob Storage using the server-backed PDF Viewer.
103103

104104
**Step 1:** Create the Azure Blob Storage account
105105

106106
Log in to the Azure Portal. Create a new Storage Account with preferred settings. Note access keys during the setup. Within the Storage Account, create a Blob Container following the steps in this [link](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=azure-portal).
107107

108108
**Step 2:** Create PDF Viewer Sample in ASP.NET MVC
109109

110-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/-with-server-backed#integrate-pdf-viewer-into-an-aspnet-mvc-application) to create a simple PDF Viewer sample in ASP.NET MVC.
110+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started-with-server-backed) to create a simple PDF Viewer sample in ASP.NET MVC.
111111

112112
**Step 3:** Modify the `HomeController.cs` File in the Project
113113

@@ -164,9 +164,9 @@ public ActionResult Load(jsonObjects jsonObject)
164164

165165
N> Replace **Your Connection string from Azure** with the actual connection string for your Azure Blob Storage account and **Your container name in Azure** with the actual container name
166166

167-
**Step 4:** Set the PDF Viewer Properties in ASP.NET MVC PDF viewer component
167+
**Step 4:** Configure the PDF Viewer component
168168

169-
Set the `documentPath` property of the PDF viewer component to the desired name of the PDF file you wish to load from Azure Blob Storage. Ensure that you correctly pass the document name from the files available in your azure container to the documentPath property.
169+
Set the `documentPath` property of the PDF Viewer to the PDF file name to load from Azure Blob Storage. Ensure the document name exists in your Azure container.
170170

171171
```csharp
172172

Document-Processing/PDF/PDF-Viewer/asp-net-mvc/open-pdf-file/from-box-cloud-file-storage.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
22
layout: post
3-
title: Box cloud file storage in ASP.NET MVC PDF Viewer Component
4-
description: Learn here all about how to Open PDF files from Box cloud file storage in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more.
3+
title: Open PDF from Box cloud storage in ASP.NET MVC PDF Viewer | Syncfusion
4+
description: Learn how to load PDFs from Box cloud storage in the Syncfusion ASP.NET MVC PDF Viewer component using a server-backed approach.
55
platform: document-processing
66
control: PDF Viewer
77
publishingplatform: ASP.NET MVC
88
documentation: ug
99
---
1010

11-
# Open PDF file from Box cloud file storage
11+
# Open PDF from Box cloud storage
1212

13-
To load a PDF file from Box cloud file storage in a PDF Viewer, you can follow the steps below
13+
Follow these steps to load a PDF from Box cloud storage using the server-backed PDF Viewer.
1414

15-
**Step 1** Set up a Box developer account and create a Box application
15+
**Step 1:** Set up a Box developer account and create a Box application
1616

1717
To access Box storage programmatically, you'll need a developer account with Box. Go to the [Box Developer Console](https://developer.box.com/), sign in or create a new account, and then create a new Box application. This application will provide you with the necessary credentials Client ID and Client Secret to authenticate and access Box APIs. Before accessing files, you need to authenticate your application to access your Box account. Box API supports `OAuth 2.0 authentication` for this purpose.
1818

19-
**Step 2:** Create PDF Viewer Sample in ASP.NET MVC
19+
**Step 2:** Create a PDF Viewer sample in ASP.NET MVC
2020

21-
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started/-with-server-backed#integrate-pdf-viewer-into-an-aspnet-mvc-application) to create a simple PDF Viewer sample in ASP.NET MVC.
21+
Follow instructions provided in the Syncfusion<sup style="font-size:70%">&reg;</sup> PDF Viewer Getting Started [Guide](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/asp-net-mvc/getting-started-with-server-backed) to create a simple PDF Viewer sample in ASP.NET MVC.
2222

23-
**Step 3:** Modify the `HomeController.cs` File in the Project
23+
**Step 3:** Modify the `HomeController.cs` file in the project
2424

25-
1. Import the required namespaces at the top of the file.
25+
1. Import the required namespaces at the top of the file:
2626

2727
```csharp
2828
using Box.V2;
@@ -87,9 +87,9 @@ using Box.V2.Models;
8787

8888
N> replace **Your_Box_Storage_Access_Token** with your actual box access token, and **Your_Folder_ID** with the ID of the folder in your box storage where you want to perform specific operations. Remember to use your valid box API credentials, as **Your_Box_Storage_ClientID** and **Your_Box_Storage_ClientSecret"** are placeholders for your application's API key and secret.
8989

90-
**Step 4:** Set the PDF Viewer Properties in ASP.NET MVC PDF viewer component
90+
**Step 4:** Configure the PDF Viewer component
9191

92-
Set the `documentPath` property of the PDF viewer component to the desired name of the PDF file you wish to load from Box cloud file storage. Ensure that you correctly pass the document name from the files available in your azure container to the documentPath property.
92+
Set the [serviceUrl](https://help.syncfusion.com/cr/aspnetmvc-js2/syncfusion.ej2.pdfviewer.pdfviewer.html#Syncfusion_EJ2_PdfViewer_PdfViewer_ServiceUrl) to your web service endpoint (replace the localhost URL with your server URL). Set `documentPath` to the PDF file name to load from Box cloud storage. Ensure the document name exists in your Box folder.
9393

9494
```csharp
9595

0 commit comments

Comments
 (0)