RadaeePDF.com :: Topic: Highlight text annotation on selection (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about iOS development and PDF

TOPIC: Highlight text annotation on selection

Highlight text annotation on selection 5 days 23 hours ago #13203

  • Yugandhara
  • Yugandhara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 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.
The administrator has disabled public write access.

Highlight text annotation on selection 5 days 20 hours ago #13204

  • emanuele
  • emanuele's Avatar
  • OFFLINE
  • Moderator
  • Posts: 450
  • Thank you received: 51
  • Karma: 14
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.
The administrator has disabled public write access.

Highlight text annotation on selection 5 days 1 hour ago #13207

  • Yugandhara
  • Yugandhara's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 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?
The administrator has disabled public write access.

Highlight text annotation on selection 1 day 22 hours ago #13216

  • emanuele
  • emanuele's Avatar
  • OFFLINE
  • Moderator
  • Posts: 450
  • Thank you received: 51
  • Karma: 14
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?
The administrator has disabled public write access.
Powered by Kunena Forum