Remove Annotation EditBox - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Remove Annotation EditBox

Remove Annotation EditBox 6 months 2 weeks ago #13867

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
I'm adding an Annotation EditBox as described here: www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=43

But once it is added, how can I delete it? I can select it and move it, but not delete it.
Is there a way to do that?

Thanks a lot.

Please Log in or Create an account to join the conversation.

Remove Annotation EditBox 6 months 2 weeks ago #13868

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
To delete an annotation you need to call
Annotation.RemoveFromPage

check www.radaeepdf.com/documentation/javadocs...tml#RemoveFromPage--

Please Log in or Create an account to join the conversation.

Remove Annotation EditBox 6 months 2 weeks ago #13871

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hey @nermeen,

thanks a lot for your answer. But how do i know which Annotation is the one I want to remove?

I'm adding a EditBox like this:
page.AddAnnotEditbox(rect, Color.TRANSPARENT, 0, Color.WHITE, textSize, Color.RED);
Page.Annotation newAnnot = page.GetAnnot(page.GetAnnotCount() - 1);
newAnnot.SetEditText("my text");

After this is added, how do I call
Annotation.RemoveFromPage
?

Please Log in or Create an account to join the conversation.

Last edit: by alecrugar.

Remove Annotation EditBox 6 months 2 weeks ago #13872

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
It depends on your requirments, it can be based on a user tap, or manually.
In later case you need to save a reference on the created annotation, for example you can set its name using a unique value (Annotation.SetName) and then get it using Page.GetAnnotByName

Please Log in or Create an account to join the conversation.

Remove Annotation EditBox 6 months 2 weeks ago #13873

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
It worked!

Thanks a lot, you've really helped me

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum