RadaeePDF.com :: Topic: Problems updating existing annotations (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Problems updating existing annotations

Problems updating existing annotations 3 years 10 months ago #4958

If you have a Page.Annotation object (here called mAnnotation) and you increase the stroke width as follows...
mAnnotation.SetStrokeWidth(largerStrokeWidth);

And then refresh the view like this…..
mPdfView.vRender(somePDFVPage);

The annotation updated with a new stroke with, but there are two problems.


  • The bounding box of the annotation is not expanded, so the new (larger) stroke width is displayed clipped at the edges.

  • The reference to the annotation in mAnnotation becomes invalid, as the Annotation itself appears to move to a new location in memory. You cannot perform subsequent operations on the annotation or reliably get a reference to the new version of it.

  • Are these bugs in the library, or do you think I might have missed something?

    Thanks
    The administrator has disabled public write access.

    Problems updating existing annotations 3 years 10 months ago #4960

    • radaee
    • radaee's Avatar
    • OFFLINE
    • Moderator
    • Posts: 825
    • Thank you received: 10
    • Karma: 43
    you can modify bounding by:

    Annotation.GetRect
    //then modify rect coordinate
    Annotation.SetRect

    annotation object are not valid after vRender invoked.
    you can record index of Annotation by a loop in Annotation object.
    The administrator has disabled public write access.

    Problems updating existing annotations 3 years 10 months ago #4961

    • radaee
    • radaee's Avatar
    • OFFLINE
    • Moderator
    • Posts: 825
    • Thank you received: 10
    • Karma: 43
    i'll modify some codes, for convenience.
    plz wait next version.
    in next version, you can invoke:
    Annotation.GetIndexInPage()

    and bounding box is auto increasing when you Invoke Annotation.SetStrokeWidth().
    Last Edit: 3 years 10 months ago by .
    The administrator has disabled public write access.

    Problems updating existing annotations 3 years 10 months ago #4967

    • nermeen
    • nermeen's Avatar
    • OFFLINE
    • Moderator
    • Posts: 711
    • Thank you received: 49
    • Karma: 18
    A new version 2.9.7beta7 has been pubblished..

    it has the following modifications:
    - NEW interface Annotation.GetIndexInPage()
    - bounding box auto increasing, when user invoke Annotation.SetStrokeWidth()
    The administrator has disabled public write access.

    Problems updating existing annotations 3 years 10 months ago #4982

    GetIndexInPage() verified as working. Thank you.
    Still working on second item.
    Last Edit: 3 years 10 months ago by soumyaranjan.behera@ggktech.com.
    The administrator has disabled public write access.

    Problems updating existing annotations 3 years 10 months ago #4985

    Thanks for the update to the bounding box. It works but there is a problem. If the annotation has been moved, the bounding box returns to its original position, and the annotation becomes clipped. I have created an image with some screen shots to help show the problem. Do you think that the library can be updated to correct this issue?

    Thank you very much. Image can be found at the following URL.

    www.asdeqlabs.com/wp-content/uploads/2014/01/pdfissue.png
    The administrator has disabled public write access.
    The following user(s) said Thank You: shvmsngh91
    • Page:
    • 1
    • 2
    Powered by Kunena Forum