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 #9558

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Need to retrieve the index value that RadaeePDF internally stores. Please let me know the sequence in which the methods are invoked inorder to store a text annotation.

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 #9561

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,
you should take a look at vAddTextAnnot method (PDFView class)
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 #9633

  • tanvi
  • tanvi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 1
Hi Emanuele,

I have tried retrieving the index value for PDFAnnot's but was unable to get the correct index value since it was returning different values everytime you open the same PDF.
Also, the index value for the 1st note created was not always 0. For some PDF files it started with 15, as the annotCount returned was 16.

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 #9635

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

I tried to reproduce this issue, but I get always the same index for the same annotation.
What kind of annotation are you using?
Can you share the pdf used for this test?

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 #9639

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

Annotation is type of note (m_status = sta_note).
The PDF is "help.pdf" used in your demo project for iOS.
Will it make a difference if we have completely disabled the scrolling of PDFView?

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 #9640

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
may you send us one of your annotated file?
may be put here your code snippet you're using to
- create annotation
- retrive annotations

One more question: are you removing annotations from page?

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

Last edit: by support.
  • Page:
  • 1
  • 2
Powered by Kunena Forum