Prevent move Annotation from other author

Discussions about annotation support.
Post Reply
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


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

User avatar
Site Admin
Posts: 5661
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Prevent move Annotation from other author

Post by Loïc » Tue Jan 15, 2019 3:44 pm

Hi, yes is is possible. Just alter the properties CanMode, CanRotate, CanEdit... of the desired annotations. You can iterate through all available annotations by using an AnnotationManager object.

Please let us know if you need further information.

With best regards,


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest