Hi Ernst,
We suspect that issue is due to the write access permission is denied in the environment so the reported issue may occur. We will create the pdfium.dll based on the operating system during the runtime of the control. So can you please try copying the below provided x64 and x86 folder and paste inside the folder(bin\Debug\netcoreapp2.1) in your environment to resolve the issue or enable the write permission for that folder?
Note:
· Kindly use both the client and server-side of the same version in your project
· Ensure whether the Pdfium dll will be created in your project during runtime. Else we can also place the pdfium assemblies in any of the production environment locations and refer to the path by using the ReferencePath API.
For example:
|
If the Pdfium assembly is available in this path C:\Pdfium\x64 or D:\Pdfium\x86, the reference path should be PdfRenderer.ReferencePath = "C:/";
The parent folder has to be provided as the path in the ReferencePath API.
Note: Provide this path in the Load method of the PDFViewerController.cs
PdfRenderer PdfRenderer = new PdfRenderer();
PdfRenderer.ReferencePath = @"C:/"; |
Kindly try it and revert with the modified sample, if you still have concerns about this.
Regards,
Dhivya.