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

TOPIC:

How to get index while storing a text annotation? 8 years 7 months ago #9641

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Creating annotation by using PDFView’s method :
-(void)vAddTextAnnot:(int)x :(int)y :(NSString *)text

Retrieving the index of object “annot” in the following method of class RDPDFViewController:
-(void)OnAnnotClicked:(PDFPage *)page :(PDFAnnot *)annot :(float)x :(float)y

No I'm not removing the annotations for now.

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

How to get index while storing a text annotation? 8 years 7 months ago #9642

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
If not deleting, I've just checked on Android and Windows (colleagues that work on iOS are actually busy) and I can confirm that:
- annotation are recorded in a sort of fifo list
- when adding a new annotation its counter is the higher one
- if you retrive annotations' index you will get overtime the same number (if you don't delete an inner annotation)
The following user(s) said Thank You: tanvi

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

How to get index while storing a text annotation? 8 years 7 months ago #9643

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Thanks!

I have been trying the same. But got annotCount as 16 even if there was not a single annotation.
Does disabling the scrolling of view affect in anyways?

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

How to get index while storing a text annotation? 8 years 7 months ago #9644

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Your file could contains not visible annotations.
As told, you should forward it to us.
May be, open a support ticket and upload it there.
When opening the ticket, enter the url of this forum thread.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum