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

TOPIC:

Method to remove all notes of a document 6 years 11 months ago #12361

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 0
Hi,

I need to delete all the notes of a document.
Is there any method for this? Or is there any other way this can be done?

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

Method to remove all notes of a document 6 years 11 months ago #12362

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

there is not a specific method to do this, but you can do it in this way:
- iterate pages with [PDFDoc page] method
- iterate annotation for each page using [PDFPage annotAtIndex]
- delete the annotation using [PDFAnnot removeFromPage]

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

  • Page:
  • 1
Powered by Kunena Forum