Export annotations - missing parameters

Hi,

I'm using backend-backed pdf viewer. Once I've updated the PDF viewer version from 28.2.12 to 29.1.37, I've noticed that some of the export annotations action parameters (in jsonObject) are missing. I just want to pass document id to this endpoint. Here's how an export annotation endpoint and also how pdf viewer are declared.

 [AcceptVerbs("Post")]
 [HttpPost("ExportAnnotations")]
 [Microsoft.AspNetCore.Cors.EnableCors("MyPolicy")]
 [Route("[controller]/ExportAnnotations")]
 public IActionResult ExportAnnotations([FromBody] Dictionary<string, string> jsonObject)
 {
      PdfRenderer pdfviewer = new PdfRenderer(_cache);
      string jsonResult = pdfviewer.ExportAnnotation(jsonObject);
      return Content(jsonResult);
}

<ejs-pdfviewer
 #pdfviewer
 id="pdfViewer"
 [serviceUrl]="pdfService"
 [documentPath]="model.id"
 [toolbarSettings]="toolbarSettings"
 (toolbarClick)="toolbarClick($event)"
 (documentLoad)='documentLoaded($event)'
 [exportAnnotationFileName]="model.id"
style="height:640px;display:block">
</ejs-pdfviewer>

I'm using exportAnnotation method of pdfViewer to export annotations. Nothing changed in code during an update to newer version. In attachment I've included the jsonObject from different versions. 

  1. Is it intended that the document property is missing?  
  2. Is it intended that the [exportAnnotationFileName] is not included at all in jsonObject?

Attachment: Payloads_344f068c.png

1 Reply

VS Venkada Subramanian Durai Syncfusion Team April 16, 2025 03:39 PM UTC

Hi Mateusz Witold,


We were unable to replicate the issue on our end. For your reference, we have attached a sample and a video demonstrating how we tested a scenario. Kindly review and modify the sample to reproduce the issue. This will help us provide a more accurate and appropriate solution to your problem

Client Sample

Service Sample

R
egards,
Venkada Subramanian Durai


Attachment: checkedparameters_50f2596.zip

Loader.
Up arrow icon