Prevent move Annotation from other author
Posted: Mon Nov 05, 2018 1:02 pm
Hi,
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.
But now I have no idea to prevent rotating or moving annotations. Is it possible? To burn the annotations is no option, because the author can get the document back and must be able to edit his own annotations again.
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);
}