WebViewer Version: 8.0.1
Hi I am unable to use setCustomData() in WebViewer.
Here’s my code snippet
).then(instance => {
const { Core } = instance;
const { annotationManager, PDFNet } = Core;
annotationManager.one("annotationChanged", () => {
PDFNet.Annot.setCustomData("Key", props.value);
});
Is this the right way to call the method as it throws error “Property ‘setCustomData’ does not exist on type ‘typeof Annot’”
My use case is I want to add a custom attribute to each annotation added to the document which can be exported as xfdf. Can you please provide the correct implementation for my use case?
Thanks