Section:
Overview
Annotation tools
Config annotation tools
Apple Pencil
Style editor
Custom style presets
Import annotations
Export annotations
Annotation list
Annotation toolbar
Style properties
Default style properties
Custom appearances
Events/triggers
Disable create/edit
Create annotations
Remove annotation
Flatten annotations
Samples
APIs
To remove an annotation from a document.
1PTPDFDoc *doc = [[PTPDFDoc alloc] initWithFilepath: filename];2PTPage *page = [doc GetPage:1];34// remove by index5[page AnnotRemoveWithIndex:0];67// remove by annotation8PTAnnot *annotation = [page GetAnnot:0];9[page AnnotRemoveWithAnnot:annotation];
1let doc: PTPDFDoc = PTPDFDoc(filepath: filename)2let page: PTPage = doc.getPage(1)34// remove by index5page.annotRemove(with: 0)67// remove by annotation8let annotation: PTAnnot = page.getAnnot(0)9page.annotRemove(with: annotation)
Did you find this helpful?
Trial setup questions?
Need other help?
Pricing or product questions?