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

TOPIC:

Removing Rect/Line/Annotation 10 years 1 week ago #5827

  • davidengler
  • davidengler's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 10 years 1 week ago #5838

  • ex93nball
  • ex93nball's Avatar
  • Offline
  • New Member
  • New Member
  • 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 10 years 1 week ago #5843

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
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 10 years 1 week ago #5873

  • ex93nball
  • ex93nball's Avatar
  • Offline
  • New Member
  • New Member
  • 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 10 years 1 week ago #5876

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