Hi,
I'm started to using PDF Viewer, implemented the c# webapi, like in you documentation, in my dev enviorement works fine, but in published API I receive the error bellow.
That's the AJAX request
{
"name": "ajaxRequestInitiate",
"JsonData": {
"document": "http://mikza.ddns.net:2710/virtuessrs/Pages/ReportViewer.aspx?/vendas/pedido&ServerName=virtue-srv01.database.windows.net&DbName=virtuedb-dfmoveis&PedidoId=235&rs:Format=PDF",
"zoomFactor": 1,
"isFileName": true,
"uniqueId": "Sync_PdfViewer_2fc4bff8-15c6-446e-0c75-3a8ef4a5955c",
"action": "Load",
"elementId": "pdfViewer"
}
}
Can you help me?
|
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:/"; |
|
|
|
Note: You need to refer the ParentFolder up to x64/x86 folder.
PdfRenderer.ReferencePath = _hostingEnvironment.ContentRootPath + \\Pdfium\\; |