I am successfully creating an annotation with text highlighting. I can save pdf with changes. But I cannot remove annotations
public void OnPDFAnnotClicked(PDFPage page, PDFAnnot annot)
m_view.vAnnotRemove(); or annot.RemoveFromPage();
I am getting unhandled exception.
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
I also tried to work with non-encrypted pdfs using a stream. The same error.