Removing Rect/Line/Annotation - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Removing Rect/Line/Annotation

Removing Rect/Line/Annotation 4 years 11 months ago #5827

  • davidengler
  • davidengler's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi,

I have downloaded the sample code for iOS, and was able to draw and add annotations, but how do you remove them?

In the android version you can click on them and then it selects them and lets you delete.

Thanks

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

Removing Rect/Line/Annotation 4 years 11 months ago #5838

  • ex93nball
  • ex93nball's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Yeah, it's very annoying.. i bought professional licence for iOS and i cannot remove any annotation

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

Removing Rect/Line/Annotation 4 years 11 months ago #5843

  • emanuele
  • emanuele's Avatar
  • Online
  • Moderator
  • Moderator
  • Posts: 543
  • Karma: 21
  • Thank you received: 65
hi,

to remove an annotation, you simply have to get it and call method removeFromPage.

for example:

//check if annot type is "ink"
if (annot.type == 15) {

//remove the annotation
[annot removeFromPage];

//re-render the page
[m_view vRenderPage:pos.pageno];

//save pdf after we have deleted the annotation
[m_doc save];

[self refresh];
}
The following user(s) said Thank You: oneenam

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

Removing Rect/Line/Annotation 4 years 11 months ago #5873

  • ex93nball
  • ex93nball's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
i got acces violation when remove annot

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

Last edit: by max.

Removing Rect/Line/Annotation 4 years 11 months ago #5876

  • emanuele
  • emanuele's Avatar
  • Online
  • Moderator
  • Moderator
  • Posts: 543
  • Karma: 21
  • Thank you received: 65
hi,

can you send us the pdf that you're using? I'll make a try with it

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

  • Page:
  • 1
Powered by Kunena Forum