Hi
we are adding a stamp annotation and attaching a link to that stamp annotation. That works perfectly fine.
Following is the code:
var stampAnnot = new annotations.StampAnnotation();
var link = new annotations.Link();
var linkHref = new currentPDFTronInstance.Actions.URI({
uri: element.dataset.wplink,
});
link.addAction(
‘U’,
linkHref
);
stampAnnot.associateLink([link.Id]);
annotManager.updateAnnotation(link);
annotManager.addAnnotation(link);
annotManager.redrawAnnotation(link);
annotManager.drawAnnotations(docViewer.getCurrentPage(), null, true);
Now we facing an issue on adding the annotation, on adding, we are getting two xmls. One for stamp annotation and other link annotation. But after dragging we get a single annotation with link annotation as child.
How we can add link annotation to stamp Annotation as child on adding, just like on dragging.
Attached are the two XMLS on adding and other on dragging.
afterDragXML.xml (2.64 KB)
addTimeXML.xml (2.29 KB)