Problems updating existing annotations - 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
  • 2

TOPIC: Problems updating existing annotations

Problems updating existing annotations 4 years 1 month ago #4958

  • sparklellama
  • sparklellama's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 34
  • Thank you received: 0
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

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

    Problems updating existing annotations 4 years 1 month ago #4960

    • radaee
    • radaee's Avatar
    • Offline
    • Moderator
    • Moderator
    • Posts: 830
    • Karma: 43
    • Thank you received: 10
    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.

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

    Problems updating existing annotations 4 years 1 month ago #4961

    • radaee
    • radaee's Avatar
    • Offline
    • Moderator
    • Moderator
    • Posts: 830
    • Karma: 43
    • Thank you received: 10
    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().

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

    Last Edit: by .

    Problems updating existing annotations 4 years 1 month ago #4967

    • nermeen
    • nermeen's Avatar
    • Offline
    • Moderator
    • Moderator
    • Posts: 754
    • Karma: 20
    • Thank you received: 55
    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()

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

    Problems updating existing annotations 4 years 1 month ago #4982

    • sparklellama
    • sparklellama's Avatar Topic Author
    • Offline
    • Junior Boarder
    • Junior Boarder
    • Posts: 34
    • Thank you received: 0
    GetIndexInPage() verified as working. Thank you.
    Still working on second item.

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

    Last Edit: by soumyaranjan.behera@ggktech.com.

    Problems updating existing annotations 4 years 1 month ago #4985

    • sparklellama
    • sparklellama's Avatar Topic Author
    • Offline
    • Junior Boarder
    • Junior Boarder
    • Posts: 34
    • Thank you received: 0
    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 following user(s) said Thank You: shvmsngh91

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

    • Page:
    • 1
    • 2
    Powered by Kunena Forum