Posted 6 January 2025, 5:25 am EST
Hi,
It is currently not possible to import and export the annotation data from and to the XFDF file respectively using DsPdfViewer. We have escalated the case to the concerned team to look into this matter and will update you as soon as we get any information from their end.
Meanwhile, we recommend the following workaround for exporting and importing the XFDF annotation data to DsPdfViewer:
-
To export the data, get the annotations using viewer.annotations in JSON format, convert this JSON to XFDF format, and save the file in XFDF format.
-
To import the data, load the XFDF file into the application, convert the content to JSON format, and add annotations into the PDF using the viewer.addAnnotation method.
[Internal Tracking ID: DOC-6694]
Best Regards,
Kartik