Hello,
I'm looking to integrate a PDF viewer into my Blazor server application which already has the Syncfusion.Blazor nuget packages (Syncfusion.Blazor & Syncfusion.Pdf.Net.Core). Is there no way for me to do this? I have the same issues compiling and you mentioned that we cannot install the viewer in the same app that contains the other packages. I need the viewer to be part of my main application so what options do I have to accomplish this?
Thank you very much,
Mike LeClair
Michael,
The Syncfusion Blazor UI components are separately available in individual NuGet packages. The NuGet packages are segregated based on the component usage and its namespace. We suggest you use Syncfusion.Blazor.PdfViewerServer.Windows NuGet package for your Blazor Server applications.
No need to install Syncfusion.Blazor NuGet packages for PDF Viewer Blazor applications (if you want to use other Syncfusion Blazor components please check and install Syncfusion Blazor individual NuGet packages).
Kindly refer to the below-modified sample and revert to us if you have any concerns about it.
Sample Link - https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorAppSF_basic_Sample-1878408435.zip
Documentation Link: https://blazor.syncfusion.com/documentation/nuget-packages/#for-blazor-server-application
Did you find a solution? Im having the same issue.
Sorry, it is not possible to use Syncfusion.Blazor and individual NuGet packages in the same application. It will throw ambiguous errors while compiling the project.
We use Syncfusion.Blazor.PdfViewerServer.Windows NuGet package for the ServerApp and Syncfusion.Blazor.PdfViewer for the wasm. The Syncfusion.Blazor has the reference to Syncfusion.Blazor.PdfViewer alone, not the Syncfusion.Blazor.PdfViewerServer.Windows package. Syncfusion.Blazor.PdfViewer will refer to all individual dll’s and Syncfusion.Blazor.PdfViewerServer.Windows will refer to the individual dll's. This will cause a duplication error. So, we suggest you use Syncfusion.Blazor.PdfViewerServer.Windows NuGet packages alone for your Blazor Server applications. If you want to use other Syncfusion Blazor components please check and install Syncfusion Blazor individual NuGet packages. We have shared the documentation for your reference.
Documentation Link: https://blazor.syncfusion.com/documentation/nuget-packages/#for-blazor-server-application
Benefits of using individual Nuget Packages:
Note: