Edit Annotation

Hi Aspose

I need to Edit some Annotation in our PDF's. Namely the Author Information. Now I figured out how I can extract and access it, but not really how to save it back?

I have both Pdf.Kit and the other pdf component.

One way I could see is to export the Annotations into Xfdf, edit the xml and import it back, but that sounds very cumbersome. Is there a better approach?

Hello Remy,

As you have mentioned you can edit the annotation by first exporting the annotations to Xfdf using ExportAnnotationsXfdf of PdfContentEditor, edit the XML and import back the Xfdf while using ImportAnnotationFromXfdf method of PdfAnnotationEditor class.

One thing I would like to share is, PdfAnnotationEditor is in Beta version and some methods in this class are still in developing and may not be mature enough.

I would also coordinate with development team, to check if there is any other approach to accomplish this.