Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Removing Rect/Line/Annotation

More
IP: 192.168.0.71 12 years 5 months ago #5827 by davidengler
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
More
IP: 192.168.0.71 12 years 5 months ago #5838 by ex93nball
Yeah, it's very annoying.. i bought professional licence for iOS and i cannot remove any annotation
More
IP: 192.168.0.151 12 years 5 months ago #5843 by emanuele
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];
}
More
IP: 192.168.0.71 12 years 5 months ago - 12 years 5 months ago #5873 by ex93nball
i got acces violation when remove annot
Last edit: 12 years 5 months ago by max.
More
IP: 192.168.0.130 12 years 5 months ago #5876 by emanuele
hi,

can you send us the pdf that you're using? I'll make a try with it
Time to create page: 0.429 seconds
Powered by Kunena Forum