export annotation The given key 'importedData' was not present in the dictionary.

hello, i use reactjs for a pdfviewer with a .netcore pdfviewer server.


It seem since few times we cannot save annotation anymore.  We can load them if there are already inside a pdf, but we cannot save new annotation.

I can open a new pdf without any annotation. I will do a free text and write  "hello", and i go to export annotation in the interface.. and here is the problem that i have :
 





5 Replies

DM Dhivyabharathi Mohan Syncfusion Team September 26, 2021 05:01 AM UTC

Hi Frédéric, 
 
 
Thank you for contacting Syncfusion support. 
 
 
We have checked by exporting the freeText annotation. But we were unable to replicate the reported issue. We have shared the sample in which we tried to replicate this issue. We suspect that the reported issue is due to the different packages referred to the Client (React) and Server (Asp.Net Core). So, we suggest you use the same version in both client and server to get the issue resolved. 
 
 
Screenshot of Client(React) version: 
 
 
 
 
Screenshot of Server(Asp.Net Core) version: 
 
 
 
 
 
 
 
 
Could you please try the sample and let us know whether you are facing the same issue? And kindly share the modified sample in which you are facing this issue. It will be helpful for us to investigate further and provide the details at the earliest. 
 
 
Regards, 
Dhivya. 
 



FR Frédéric September 27, 2021 12:36 AM UTC

Hello, I found the problem to be able to export my annotation, thanks but... 

There is another problem with some other free text.  I let you here  the JSON of the export.

You can import it in another pdf, and try to save the pdf.  I receive that error :



Attachment: annotationBug_2d6ad051.zip


DM Dhivyabharathi Mohan Syncfusion Team September 27, 2021 12:50 PM UTC

Hi Frédéric, 
 
Thank you for the JSON file. We have checked the provided JSON file. But we are getting the issue as “Object reference not set to an instance of the object exception while downloading the file after importing the provided JSON file”. We will analyze further and provide the details on September 29, 2021. 
 
Screenshot of the error which we are getting in our end: 
 
 
 
 
In the meantime, could you please confirm us whether you are facing the same issue “Object Reference not set to an instance of the object” while downloading the document with the provided JSON data. Please confirm whether you have exported the provided JSON file from the Syncfusion PDF Viewer or any other control? And please ensure to use the same version (client & server) for performing the importing and exporting functions of JSON data. And please confirm whether you have any modification done manually on the exported JSON file or please share the code snippet of export annotation and import annotation which are using on your end. This will be helpful to investigate further and assist you better. 
 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team September 29, 2021 09:09 AM UTC

Hi Frédéric, 
 
 
We have confirmed that the reported issue “Unable to download the document after importing the provided JSON file” is a defect and logged the defect report for the same. The fix for this issue will be included in our upcoming weekly NuGet release on 13 October 2021. You can track the status using the below feedback link. 
 
 
  
 
 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team October 14, 2021 08:08 AM UTC

Hi Frédéric, 
 
We have fixed the reported issue and the fix was included in our latest weekly release v19.3.0.45. Kindly upgrade to that version to get the issue resolved.    
    
   
Packages link:       
  
Blazor Client     
Blazor Sever    
Service side package       
ASP.NET Core :       
        
ASP.NET MVC:       
      
   
  
  
  
  
 
Regards, 
Dhivya. 


Loader.
Up arrow icon