# Save only annotated pages The page describes how to save only annotated pages when using GroupDocs.Annotation for .NET API. To export to output document only annotated pages, follow these steps: 1. Instantiate the [Annotator](https://reference.groupdocs.com/net/annotation/groupdocs.annotation/annotator) class. Specify the input document path or stream. 2. Instantiate the [SaveOptions](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.options/saveoptions) class. Set the [OnlyAnnotatedPages](https://reference.groupdocs.com/annotation/net/groupdocs.annotation.options/saveoptions/onlyannotatedpages/) property to `true`. 3. Call the [Save](https://reference.groupdocs.com/net/annotation/groupdocs.annotation/annotator/methods/save/index) method with the output document path or stream. Specify the [SaveOptions](https://reference.groupdocs.com/net/annotation/groupdocs.annotation.options/saveoptions) class as a parameter. The following code snippet shows how to save only annotated pages: {{< tabs "example1">}} {{< tab "C#" >}} ```csharp // for this example input file ("input.pdf") must have at least 10 pages using (Annotator annotator = new Annotator("input.pdf")) { AreaAnnotation area = new AreaAnnotation() { Box = new Rectangle(100, 100, 100, 100), BackgroundColor = 65535, PageNumber = 1 }; EllipseAnnotation ellipse = new EllipseAnnotation() { Box = new Rectangle(100, 100, 100, 100), BackgroundColor = 123456, PageNumber = 9 }; //Result file will be contain only two pages (1 and 9) annotator.Add(new List() { area, ellipse }); annotator.Save("result.pdf" new SaveOptions { OnlyAnnotatedPages = true}); } ``` {{< /tab >}} {{< /tabs >}}