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.
-
Is it intended that the document property is missing?
- Is it intended that the [exportAnnotationFileName] is not included at all in jsonObject?
Attachment:
Payloads_344f068c.png