From d0c9fcb2c75037dffb2a6a27b6db2520522ca8e6 Mon Sep 17 00:00:00 2001 From: sathiyaseelanksf3503 Date: Tue, 16 Jul 2024 12:55:21 +0530 Subject: [PATCH 1/2] 896980: OpenSaveAWS --- .../open-pdf-file/from-amazon-s3.md | 82 +++++++++++- .../EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md | 117 +++++++++++++++++- .../open-pdf-file/from-amazon-s3.md | 82 +++++++++++- .../save-pdf-file/to-amazon-s3.md | 113 ++++++++++++++++- 4 files changed, 390 insertions(+), 4 deletions(-) diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md index 9429f80f8e..9336ee8811 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md @@ -10,6 +10,86 @@ documentation: ug # Open PDF file from AWS S3 +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. + +## Using Standalone PDF Viewer + +To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below + +**Step 1:** Create AWS S3 account + +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. + +**Step 2:** Create PDF Viewer Sample in ASP.NET MVC + +Follow instructions provided in the Syncfusion PDF Viewer Getting Started [Guide](https://ej2.syncfusion.com/aspnetmvc/documentation/pdfviewer/getting-started) to create a simple PDF Viewer sample in ASP.NET MVC. + +**Step 3:** Modify the `~/Views/Shared/_Layout.cshtml` File in the Project + +1. Add the required scripts using CDN inside the `` of `~/Views/Shared/_Layout.cshtml` file as follows, + +{% tabs %} +{% highlight c# tabtitle="~/_Layout.cshtml" %} + + + ... + + + +{% endhighlight %} +{% endtabs %} + +**Step 4:** Modify the `~/Views/Home/Index.cshtml` File in the Project + +1. Configures AWS SDK with the region, access key, and secret access key. This configuration allows the application to interact with AWS services like S3. + +N> Replace **Your Region** with the actual Region of your AWS S3 account and **Your Access Key** with the actual Access Key of your AWS S3 account and **Your Security Access Key** with the actual Security Access Key of your AWS S3 account. + +```csharp +AWS.config.update({ + region: '**Your Region**', // Update this your region + accessKeyId: '*Your Access Key*', // Update this with your access key id + secretAccessKey: '*Your Security Access Key*', // Update this with your secret access key +}); +``` + +2. Sets the parameters for fetching the PDF document from S3, including the bucket name and file key. Then Uses the getObject method of the S3 instance to retrieve the document. Converts the document data to a Base64 string and loads it into the Syncfusion PDF Viewer then load Base64 string generated into the viewer.load method. + +N> Replace **Your Bucket Name** with the actual Bucket name of your AWS S3 account and **Your Key** with the actual File Key of your AWS S3 account. + +```csharp +loadDocument() { + const s3 = new AWS.S3(); + const getObjectParams = { + Bucket: '**Your Bucket Name**', + Key: '**Your Key**', + }; + this.s3.getObject(getObjectParams, (err, data) => { + if (err) { + console.error('Error fetching document:', err); + } else { + if (data && data.Body) { + const bytes = new Uint8Array(data.Body as ArrayBuffer); + let binary = ''; + bytes.forEach((byte) => (binary += String.fromCharCode(byte))); + const base64String = window.btoa(binary); + console.log('Document data as Base64:', base64String); + var viewer = (document.getElementById("pdfViewer")).ej2_instances[0]; + setTimeout(() => { + viewer.load("data:application/pdf;base64,"+base64String); + }, 2000); + } + } + }); +} +``` + +N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. + +[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). + +## Using Server-Backed PDF Viewer + To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below **Step 1:** Create AWS S3 account @@ -98,4 +178,4 @@ Set the `documentPath` property of the PDF viewer component to the desired name N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. -[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-aws-s3) \ No newline at end of file +[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%20Server-Backend) \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md index 355e4bf8d2..77dd4973d8 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md @@ -10,6 +10,121 @@ documentation: ug # Save PDF file to AWS S3 +PDF Viewer allows to save PDF file to AWS S3 using either the Standalone or Server-backed PDF Viewer. Below are the steps and a sample to demonstrate how to save PDF to AWS S3. + +## Using Standalone PDF Viewer + +To save a PDF file to AWS S3 bucket, you can follow the steps below + +**Step 1:** Create AWS S3 account + + 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. + +**Step 2:** Create PDF Viewer Sample in ASP.NET MVC + +Follow instructions provided in the Syncfusion PDF Viewer Getting Started [Guide](https://ej2.syncfusion.com/aspnetmvc/documentation/pdfviewer/getting-started) to create a simple PDF Viewer sample in ASP.NET MVC. + +**Step 3:** Modify the `~/Views/Shared/_Layout.cshtml` File in the Project + +1. Add the required scripts using CDN inside the `` of `~/Views/Shared/_Layout.cshtml` file as follows, + +{% tabs %} +{% highlight c# tabtitle="~/_Layout.cshtml" %} + + + ... + + + +{% endhighlight %} +{% endtabs %} + +**Step 4:** Modify the `~/Views/Home/Index.cshtml` File in the Project + +1. Configures AWS SDK with the region, access key, and secret access key. This configuration allows the application to interact with AWS services like S3. + +N> Replace **Your Region** with the actual Region of your AWS S3 account and **Your Access Key** with the actual Access Key of your AWS S3 account and **Your Security Access Key** with the actual Security Access Key of your AWS S3 account. + +```csharp +AWS.config.update({ + region: '**Your Region**', // Update this your region + accessKeyId: '*Your Access Key*', // Update this with your access key id + secretAccessKey: '*Your Security Access Key*', // Update this with your secret access key +}); +``` + +2. Configure a custom toolbar item for the download function to save a PDF file in Azure Blob Storage. + +```csharp +
+
+ @Html.EJS().PdfViewer("pdfviewer").ResourceUrl("https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib").Created("loadDocument").ToolbarClick("toolbarClick").Render() +
+
+ + +``` + +3. Retrieve the PDF viewer instance and save the current PDF as a Blob. Then, read the Blob using a FileReader to convert it into an ArrayBuffer, and upload the ArrayBuffer to AWS S3 using the putObject method of the S3 instance. + +N> Replace **Your Bucket Name** with the actual Bucket name of your AWS S3 account and **Your Key** with the actual File Key of your AWS S3 account. + +```csharp +function saveDocument() { + const s3 = new AWS.S3(); + var pdfViewer = document.getElementById('pdfviewer').ej2_instances[0]; + pdfViewer.saveAsBlob().then(function (value) { + var reader = new FileReader(); + reader.onload = () => { + const uint8Array = new Uint8Array(reader.result); + const putObjectParams = { + Bucket: '**Your Bucket Name**', + Key: '**Your Key**', + Body: uint8Array, + ContentType: 'application/pdf', + }; + s3.putObject(putObjectParams, (err, data) => { + if (err) { + console.error('Error uploading document:', err); + } else { + console.log('Document uploaded successfully:', data); + } + }); + }; + reader.readAsArrayBuffer(value); + }); +} +``` + +N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. + +[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). + +## Using Server-Backed PDF Viewer + To save a PDF file to AWS S3 bucket, you can follow the steps below **Step 1:** Create AWS S3 account @@ -90,4 +205,4 @@ Set the `documentPath` property of the PDF viewer component to the desired name N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. -[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-aws-s3) \ No newline at end of file +[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%20Server-Backend) \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md index 0478ab7f21..6cec16a1b5 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md @@ -10,6 +10,86 @@ documentation: ug # Open PDF file from AWS S3 +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. + +## Using Standalone PDF Viewer + +To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below + +**Step 1:** Create AWS S3 account + + 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. + +**Step 2:** Create PDF Viewer Sample in ASP.NET Core + +Follow instructions provided in the Syncfusion PDF Viewer Getting Started [Guide](https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/getting-started) to create a simple PDF Viewer sample in ASP.NET Core. + +**Step 3:** Modify the `~/Pages/Shared/_Layout.cshtml` File in the Project + +1. Add the required scripts using CDN inside the `` of `~/Pages/Shared/_Layout.cshtml` file as follows, + +{% tabs %} +{% highlight c# tabtitle="~/_Layout.cshtml" %} + + + ... + + + +{% endhighlight %} +{% endtabs %} + +**Step 4:** Modify the `~/Pages/Index.cshtml` File in the Project + +1. Configures AWS SDK with the region, access key, and secret access key. This configuration allows the application to interact with AWS services like S3. + +N> Replace **Your Region** with the actual Region of your AWS S3 account and **Your Access Key** with the actual Access Key of your AWS S3 account and **Your Security Access Key** with the actual Security Access Key of your AWS S3 account. + +```csharp +AWS.config.update({ + region: '**Your Region**', // Update this your region + accessKeyId: '*Your Access Key*', // Update this with your access key id + secretAccessKey: '*Your Security Access Key*', // Update this with your secret access key +}); +``` + +2. Sets the parameters for fetching the PDF document from S3, including the bucket name and file key. Then Uses the getObject method of the S3 instance to retrieve the document. Converts the document data to a Base64 string and loads it into the Syncfusion PDF Viewer then load Base64 string generated into the viewer.load method. + +N> Replace **Your Bucket Name** with the actual Bucket name of your AWS S3 account and **Your Key** with the actual File Key of your AWS S3 account. + +```csharp +loadDocument() { + const s3 = new AWS.S3(); + const getObjectParams = { + Bucket: '**Your Bucket Name**', + Key: '**Your Key**', + }; + this.s3.getObject(getObjectParams, (err, data) => { + if (err) { + console.error('Error fetching document:', err); + } else { + if (data && data.Body) { + const bytes = new Uint8Array(data.Body as ArrayBuffer); + let binary = ''; + bytes.forEach((byte) => (binary += String.fromCharCode(byte))); + const base64String = window.btoa(binary); + console.log('Document data as Base64:', base64String); + var viewer = (document.getElementById("pdfViewer")).ej2_instances[0]; + setTimeout(() => { + viewer.load("data:application/pdf;base64,"+base64String); + }, 2000); + } + } + }); +} +``` + +N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. + +[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). + +## Using Server-Backed PDF Viewer + To load a PDF file from AWS S3 in a PDF Viewer, you can follow the steps below **Step 1:** Create AWS S3 account @@ -132,4 +212,4 @@ Set the `documentPath` property of the PDF viewer component to the desired name N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. -[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-aws-s3) \ No newline at end of file +[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%20Server-Backend) \ No newline at end of file diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md index c3d7a6fd60..9d2f8e6fa4 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md @@ -10,6 +10,117 @@ documentation: ug # Save PDF file to AWS S3 +PDF Viewer allows to save PDF file to AWS S3 using either the Standalone or Server-backed PDF Viewer. Below are the steps and a sample to demonstrate how to save PDF to AWS S3. + +## Using Standalone PDF Viewer + +To save a PDF file to AWS S3, you can follow the steps below + +**Step 1:** Create AWS S3 account + + 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. + +**Step 2:** Create PDF Viewer Sample in ASP.NET Core + +Follow instructions provided in the Syncfusion PDF Viewer Getting Started [Guide](https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/getting-started) to create a simple PDF Viewer sample in ASP.NET Core. + +**Step 3:** Modify the `~/Pages/Shared/_Layout.cshtml` File in the Project + +1. Add the required scripts using CDN inside the `` of `~/Pages/Shared/_Layout.cshtml` file as follows, + +{% tabs %} +{% highlight c# tabtitle="~/_Layout.cshtml" %} + + + ... + + + +{% endhighlight %} +{% endtabs %} + +**Step 4:** Modify the `~/Pages/Index.cshtml` File in the Project + +1. Configures AWS SDK with the region, access key, and secret access key. This configuration allows the application to interact with AWS services like S3. + +N> Replace **Your Region** with the actual Region of your AWS S3 account and **Your Access Key** with the actual Access Key of your AWS S3 account and **Your Security Access Key** with the actual Security Access Key of your AWS S3 account. + +```csharp +AWS.config.update({ + region: '**Your Region**', // Update this your region + accessKeyId: '*Your Access Key*', // Update this with your access key id + secretAccessKey: '*Your Security Access Key*', // Update this with your secret access key +}); +``` + +2. Configure a custom toolbar item for the download function to save a PDF file in Azure Blob Storage. + +```csharp +
+ + +
+ + +``` + +3. Retrieve the PDF viewer instance and save the current PDF as a Blob. Then, read the Blob using a FileReader to convert it into an ArrayBuffer, and upload the ArrayBuffer to AWS S3 using the putObject method of the S3 instance. + +N> Replace **Your Bucket Name** with the actual Bucket name of your AWS S3 account and **Your Key** with the actual File Key of your AWS S3 account. + +```csharp +function saveDocument() { + const s3 = new AWS.S3(); + var pdfViewer = document.getElementById('pdfviewer').ej2_instances[0]; + pdfViewer.saveAsBlob().then(function (value) { + var reader = new FileReader(); + reader.onload = () => { + const uint8Array = new Uint8Array(reader.result); + const putObjectParams = { + Bucket: '**Your Bucket Name**', + Key: '**Your Key**', + Body: uint8Array, + ContentType: 'application/pdf', + }; + s3.putObject(putObjectParams, (err, data) => { + if (err) { + console.error('Error uploading document:', err); + } else { + console.log('Document uploaded successfully:', data); + } + }); + }; + reader.readAsArrayBuffer(value); + }); +} +``` + +N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. + +[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). + +## Using Server-Backed PDF Viewer + To save a PDF file to AWS S3, you can follow the steps below **Step 1:** Create AWS S3 account @@ -124,4 +235,4 @@ Set the `documentPath` property of the PDF viewer component to the desired name N> The **AWSSDK.S3** NuGet package must be installed in your application to use the previous code example. -[View sample in GitHub](https://github.com/SyncfusionExamples/open-save-pdf-documents-in-aws-s3) \ No newline at end of file +[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%20Server-Backend) \ No newline at end of file From 04187b470736d16a7e76ec5772681784b30cb22f Mon Sep 17 00:00:00 2001 From: sathiyaseelanksf3503 Date: Tue, 16 Jul 2024 13:10:40 +0530 Subject: [PATCH 2/2] 896980: OpenSaveAWS --- .../pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md | 2 +- .../pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md | 4 ++-- .../pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md | 2 +- .../pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md index 9336ee8811..1efa35cef8 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/open-pdf-file/from-amazon-s3.md @@ -1,6 +1,6 @@ --- layout: post -title: AWS S3 in ##Platform_Name## PDF Viewer Component +title: AWS S3 in ##Platform_Name## Syncfusion PDF Viewer Component 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. platform: ej2-asp-core-mvc control: PDF Viewer diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md index 77dd4973d8..b7d6fd2c18 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.MVC/save-pdf-file/to-amazon-s3.md @@ -1,7 +1,7 @@ --- layout: post -title: AWS S3 in ##Platform_Name## PDF Viewer Component -description: Save PDF files to AWS S3 in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. +title: AWS S3 in ##Platform_Name## Syncfusion PDF Viewer Component +description: Learn here all about how to Save PDF files from AWS S3 in ASP.NET MVC PDF Viewer component of Syncfusion Essential JS 2 and more. platform: ej2-asp-core-mvc control: PDF Viewer publishingplatform: ##Platform_Name## diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md index 6cec16a1b5..82280a1a75 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/open-pdf-file/from-amazon-s3.md @@ -1,6 +1,6 @@ --- layout: post -title: AWS S3 in ##Platform_Name## PDF Viewer Component +title: AWS S3 in ##Platform_Name## Syncfusion PDF Viewer Component description: Learn here all about how to Open PDF files from AWS S3 in ASP.NET CORE PDF Viewer component of Syncfusion Essential JS 2 and more. platform: ej2-asp-core-mvc control: PDF Viewer diff --git a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md index 9d2f8e6fa4..29f481096e 100644 --- a/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md +++ b/ej2-asp-core-mvc/pdfviewer/EJ2_ASP.NETCORE/save-pdf-file/to-amazon-s3.md @@ -1,6 +1,6 @@ --- layout: post -title: AWS S3 in ##Platform_Name## PDF Viewer Component +title: AWS S3 in ##Platform_Name## Syncfusion PDF Viewer Component description: Save PDF files to AWS S3 in ASP.NET CORE PDF Viewer component of Syncfusion Essential JS 2 and more. platform: ej2-asp-core-mvc control: PDF Viewer