Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9645 Reply

    Meir

    Hello,

    How can I delete an annotation in Android?

    Meir

    #9646 Reply

    Meir

    I also want to highlight an area where users can write comments. This area should NOT be saved later together with the usual annotations. How can I do that?

    #9652 Reply

    Dr. Plug
    Moderator

    Hello Meir,

    Thank you for posting your questions.

    Annotations can be actually removed in two different ways, here is an example.

    On the other hand, I’m not very clear about what you want to do exactly when allowing users to write comments.

    Would you want to highlight a text filed?

    Best regards,
    Dr. Plug

    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    #9657 Reply

    Meir

    Thank you for your reply.

    I will try to explain both questions.

    1. I want to allow the user to press on a button in order to delete all the Annotations or the last added annotation, and not through a listener.

    2. I want to guide the user where is the location to put his annotation. The way I see it is to draw a yellow rectangle in order to allow the user put his annotation inside this rectangle. But this rectangle should be later removed and not save on the file.

    I hope I am now more clear.

    Regards,

    Meir

    #9660 Reply

    Dr. Plug
    Moderator

    Hello Meir,

    Thank you for your detailed explanation. Here are the answers for both your questions.

    1. There is a method in PageViewListener, named onAnnotationEdited, which is called after the annotation is edited. Note that if the editType parameter is 0, then the annotation is added.

    Annotations can be removed this way.

    2. PlugPDF comes with a method for making rectangle annotations, as it is shown in the example below.

    If you don’t want to save the rectangle annotation, just remove it before closing the PDF.

    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    • This reply was modified 1 year, 3 months ago by  Dr. Plug.
    #9670 Reply

    Meir

    Thank you, this was very helpful.

    There is a syntax error however:

    It should be:

    Instead of:

    #9671 Reply

    Dr. Plug
    Moderator

    That was already fixed, thank you for your feedback.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: How do I delete an annotation
Your information: