Frameworks
React Native
Flutter
Package samples
Cookbook
Version 11
Version 10
Version 9
Version 8
Version 7
Version 6
Version 5
Using the Apryse library, you can delete a single annotation, delete all the annotations on a page, or delete all the annotations in a PDF document.
The Apryse library has an annotation list dialog fragment. The dialog fragment allows users to delete annotations easily. For more information, see annotation dialog fragment .
To delete an annotation, you need the page number of the annotation. To avoid looping through the whole document to find the page number of the annotation, we recommend you always keep track of the page number when you get an annotation.
To delete an annotation, you need to lock PDFViewCtrl
first. See the section on document locking for more information.
You can delete an annotation as follows:
The following snippet shows how to enumerate all the annotations on a page, as well as how to delete them.
The following snippet shows how to traverse all the pages in a PDF document and delete all the annotations.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales