- Posts: 6
- Thank you received: 0
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
- davidengler
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
12 years 5 months ago #5827
by davidengler
Removing Rect/Line/Annotation was created 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
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
IP: 192.168.0.71
12 years 5 months ago #5838
by ex93nball
Replied by ex93nball on topic Removing Rect/Line/Annotation
Yeah, it's very annoying.. i bought professional licence for iOS and i cannot remove any annotation
IP: 192.168.0.151
12 years 5 months ago #5843
by emanuele
Replied by emanuele on topic Removing Rect/Line/Annotation
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];
}
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];
}
IP: 192.168.0.71
12 years 5 months ago - 12 years 5 months ago #5873
by ex93nball
Replied by ex93nball on topic Removing Rect/Line/Annotation
i got acces violation when remove annot
Last edit: 12 years 5 months ago by max.
IP: 192.168.0.130
12 years 5 months ago #5876
by emanuele
Replied by emanuele on topic Removing Rect/Line/Annotation
hi,
can you send us the pdf that you're using? I'll make a try with it
can you send us the pdf that you're using? I'll make a try with it
Time to create page: 0.429 seconds