Working with Annotations - facades
Add FreeText Annotation
The following code snippet shows you how to add an annotation in a PDF file.
You can use PdfAnnotationEditor class to delete all the annotations, by a specified annotation type, from the existing PDF file. In order to do that you need to create a PdfAnnotationEditor object and bind input PDF file using bindPdf method. After that, call deleteAnnotations method, with the string parameter, to delete all the annotations from the file; the string parameter represents the annotation type to be deleted. Finally, use save method to save the updated PDF file.
The following code snippet shows you how to delete all annotations by specified annotation type.
The following code snippet shows you how to export annotations to XFDF file.