Highlight text annotation on selection - 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 iOS development and PDF
  • Page:
  • 1

TOPIC: Highlight text annotation on selection

Highlight text annotation on selection 2 months 2 weeks ago #13203

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi,
I need to highlight the note annotation with a black border on annot select.
I am not able to find the code to do that.
Please help me in identifying the code.

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

Highlight text annotation on selection 2 months 2 weeks ago #13204

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 478
  • Karma: 15
  • Thank you received: 52
Hi,

the annot rect is set when onSingleTap of PDFView class is called.
Then you can take a look at drawAnnot method to draw the black rectangle to highlight the annotation.

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

Highlight text annotation on selection 2 months 2 weeks ago #13207

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
If i am trying to call the drawAnnot method by passing context as UIGraphicsGetcurrentContext() then context is nil.
Please give me possible solution for this?

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

Highlight text annotation on selection 2 months 2 weeks ago #13216

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 478
  • Karma: 15
  • Thank you received: 52
Can you please better explain the steps of your custom implementation?
It's possible that you are calling drawAnnot method when the page is not loaded?

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

  • Page:
  • 1
Powered by Kunena Forum