I am using .netcore application and using pdfviewer.
I launched my application in linux.
I added the nuget package ej2.pdfviewer.aspnet.core.linux.
In renderpdfpages api - i am getting an error
The type initializer for 'Gdip' threw an exception
can you help me find out whats the issue
public IActionResult RenderPdfPages([FromBody]Dictionary<string, string> jsonObject)
{
PdfRenderer pdfviewer = new PdfRenderer(_cache);
object jsonResult = pdfviewer.GetPage(jsonObject);
return Content(JsonConvert.SerializeObject(jsonResult));
}