We have licence of PDFtron. I am trying to remove custom stamp annotation using on click on mouse. on Mouse Click i get x and y coordinate. How can i removed the click custom stamp annotation.
If you are using a PDFViewCtrl class, there should be a method called GetAnnotationAt or similar (exact method depends on platform).
So something like the following…
`
PDFDoc doc = m_viewer.GetDoc();
doc.Lock(); // write lock
Annot annot = m_viewer.GetAnnotAt(x,y);
Page page(m_viewer.GetPageNumberAt(x, y);
page.AnnotRemove(annot);
doc.Unlock();
m_viewer.Update(); // there might be a version of Update available that takes an annot, therefore avoiding refreshing everything…
`