Remove Annotation EditBox - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Remove Annotation EditBox

Remove Annotation EditBox 3 weeks 4 hours ago #13867

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • 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 2 weeks 4 days ago #13868

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 834
  • Karma: 22
  • Thank you received: 65
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 2 weeks 4 days ago #13871

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • 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 2 weeks 4 days ago #13872

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 834
  • Karma: 22
  • Thank you received: 65
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 2 weeks 4 days ago #13873

  • alecrugar
  • alecrugar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • 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