Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Highlight text annotation on selection 6 years 4 months ago #13203

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • 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 6 years 4 months ago #13204

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 6 years 4 months ago #13207

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • 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 6 years 4 months ago #13216

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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