- Posts: 19
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Remove Annotation EditBox
IP: 213.229.168.198
8 years 3 months ago #13867
by alecrugar
Remove Annotation EditBox was created by alecrugar
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.
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.
IP: 37.183.44.177
8 years 3 months ago #13868
by nermeen
Replied by nermeen on topic Remove Annotation EditBox
To delete an annotation you need to call
check www.radaeepdf.com/documentation/javadocs...tml#RemoveFromPage--
Code:
Annotation.RemoveFromPage
check www.radaeepdf.com/documentation/javadocs...tml#RemoveFromPage--
IP: 213.229.168.198
8 years 3 months ago - 8 years 3 months ago #13871
by alecrugar
Replied by alecrugar on topic Remove Annotation EditBox
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:
After this is added, how do I call
?
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:
Code:
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
Code:
Annotation.RemoveFromPage
Last edit: 8 years 3 months ago by alecrugar.
IP: 37.183.44.177
8 years 3 months ago #13872
by nermeen
Replied by nermeen on topic Remove Annotation EditBox
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
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
IP: 213.229.168.198
8 years 3 months ago #13873
by alecrugar
Replied by alecrugar on topic Remove Annotation EditBox
It worked!
Thanks a lot, you've really helped me
Thanks a lot, you've really helped me
Time to create page: 0.404 seconds