Prevent move Annotation from other author

Discussions about annotation support.
Post Reply
mb77
Posts: 1
Joined: Mon Nov 05, 2018 12:30 pm

Prevent move Annotation from other author

Post by mb77 » 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.

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);    
        }
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests