# Export annotations The page describes how to export annotation using GroupDocs.Annotation for .NET API. GroupDocs v22.1 allows you to export annotations from a document to an XML file. The following code snippet shows how to export annotations: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp using (Annotator annotator = new Annotator("input.pdf-file")) // specify the path to the input PDF file { annotator.ExportAnnotationsFromXMLFile("input.XML-file"); // specify the path to the input XML file annotator.Save("result_export"); } ``` {{< /tab >}} {{< /tabs >}}