- Home
- Forum
- Angular - EJ 2
- How to use PDF viewer with asp.net core for both windows and linux platform
How to use PDF viewer with asp.net core for both windows and linux platform
Hi,
I have studied following link that help me to understand the working model of angular PDF viewer with asp.net core.
https://www.syncfusion.com/kb/11063/how-to-create-the-pdf-viewer-web-service-application-in-net-core-3-0-and-above-version
I found one notes there:
For Linux and OSX operating systems, use the following corresponding libraries:
- Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux
- Syncfusion.EJ2.PdfViewer.AspNet.Core.OSX
Suppose I have two clients. One is using windows and other one is using Linux. What should I do if I wish to create only one built which can be used for both platform or I have to create separate build for both windows and linux.
SIGN IN To post a reply.
5 Replies
1 reply marked as answer
AA
Akshaya Arivoli
Syncfusion Team
August 11, 2020 12:17 PM UTC
Hi Pranav,
Thank you for contacting Syncfusion support.
Our PDF Viewer web service project will be supported in both Windows and Linux platform. For working in Windows environment we need to install the Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows package in your project and then build and run the same. Similarly to work with Linux platform you need to install Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux package in your project and the build and run it.
Note: Kindly do not install both the packages at a time in your project, which will throw errors.
Please revert us if you have any concerns on this.
Regards,
Akshaya
Marked as answer
PP
Pranav Patel
August 11, 2020 12:33 PM UTC
Hi Akshaya,
Thanks for your kind assistance and provided me the clarity on how to use pdfviewer control for Windows and Linux...
Regards
AA
Akshaya Arivoli
Syncfusion Team
August 12, 2020 08:05 AM UTC
Hi Pranav,
Thank you for your update. Please contact us if you need any assistance in feature.
Regards,
Akshaya
RZ
Ron Zhong
October 14, 2020 11:42 PM UTC
If my local development machine is a windows and the targeting hosting server is linux. How can i dynamically load different packages?
MS
Mohan Selvaraj
Syncfusion Team
October 15, 2020 09:24 AM UTC
Hi Ron,
We need to maintain the two different C# Project File (.csproj) file. In one project you can refer to the Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows package for using it in a windows environment and in other projects we can refer the Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux package for using it in a Linux environment. Based on the operating system you can open your project file (.csproj) and then build and run the same. We have shared the web service sample for the same.
In the above-provided sample, we have created two project files(.csproj) for both Windows and Linux in your project. Kindly run the project(ej2-pdfviewer-web-service) with the windows packages while working locally. Then build and deploy the project with the Linux project (ej2-pdfviewer-web-service_Linux).
Regards,
Mohan S
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
- Marked answer
-
PP Pranav Patel
- Aug 10, 2020 04:27 AM UTC
- Oct 15, 2020 09:24 AM UTC