PdfViewerController.Load get null values from ej.pdfviewer.PdfViewer

Hi!

With version 20.3.0.48 the following call works correct:

var pdfViewer = new ej.pdfviewer.PdfViewer({

                documentPath: path,

                serviceUrl: '/api/PdfViewer',

                enableCustomStamp:true,

                locale: "de-DE"

});

Controller:

 public IActionResult Load([FromBody] Dictionary<string, string> jsonObject)

        {

            PdfRenderer pdfviewer = new PdfRenderer(_cache);

            PdfRenderer.ReferencePath = Path.Combine(_hostingEnvironment.ContentRootPath,"Pdfium");

            MemoryStream stream = new MemoryStream();

            .......


If we upgrade to 22.1.34 -> .Load is called but jsonObject is null.

Do you have any hints for me?

Regards Bernhard



1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team June 27, 2023 01:17 PM UTC

We have attempted to replicate the problem based on the provided information, but, we were unable to reproduce the issue using the provided details. To assist you further, we have prepared a sample which can be accessed through the following link:

 

Javascript Sample: https://stackblitz.com/edit/t7lenz?file=index.js,index.html

Web service sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebService22.1.3427304099.zip

 

Please try out the provided sample and get back to us with the following details if you have any concerns regarding this issue. This information will assist us in further analyzing the problem and providing you with the necessary details.

 

  • Share a modified sample or provide the sample in which the issue can be reproduced.
  • Include the relevant code snippet.
  • If the issue is specific to a particular document, please provide us with a copy of the PDF file.

 

Note: Make sure that you are using the same client and server versions. For the client-side, you need to update the CDN versions in Javascript sample. For the server-side, you need to update the Nuget Package. (Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows).


Loader.
Up arrow icon