I have a customer requirement with annotations. PDF documents are edited by multiple users and only the author should by able to edit, move, rotate etc. his own annotations.
I use the Author-property to identify the user and in case of StickyNotes I can call HideTextEditBox within the AnnotationStartEditingText-Eventhandler to prevent changing the text.
Code: Select all
public void gdviewer_AnnotationStartEditingText(int annotationIdx)
{
//editieren darf nur der Autor
if (annotationIdx != -1 && gdviewer.GetAnnotationFromIdx(annotationIdx).Author != Environment.UserName)
gdviewer.HideTextEditBox(false);
}