---
title: "PdfAnnotationEditor.ExportAnnotationsXfdf"
url: "https://reference.aspose.com/pdf/net/aspose.pdf.facades/pdfannotationeditor/exportannotationsxfdf/"
product: "Aspose.PDF for .NET API Reference"
description: "PdfAnnotationEditor method. Exports the content of the specified annotation types into XFDF"
---

## ExportAnnotationsXfdf(Stream, int, int, string[]) {#exportannotationsxfdf_1}

Exports the content of the specified annotation types into XFDF

```csharp
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xmlOutputStream | Stream | The output XFDF stream. |
| start | Int32 | Start page from which the annotations of the document will be exported. |
| end | Int32 | End page to which the annotations of the document will be exported. |
| annotTypes | String[] | The array of annotation types need be exported. |

## Examples

```csharp
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
using (Stream stream = File.Create("example.xfdf"))
{
    editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}
```

### See Also

* class [PdfAnnotationEditor](../)
* namespace [Aspose.Pdf.Facades](../../../aspose.pdf.facades/)
* assembly [Aspose.PDF](../../../)

---

## ExportAnnotationsXfdf(Stream, int, int, AnnotationType[]) {#exportannotationsxfdf}

Exports the content of the specified annotations types into XFDF

```csharp
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xmlOutputStream | Stream | The output XFDF stream. |
| start | Int32 | Start page from which the annotations of the document will be exported. |
| end | Int32 | End page to which the annotations of the document will be exported. |
| annotTypes | AnnotationType[] | The array of annotation types need be exported. |

## Examples

```csharp
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
using (Stream stream = File.Create("example.xfdf"))
{
    editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}
```

### See Also

* enum [AnnotationType](../../../aspose.pdf.annotations/annotationtype/)
* class [PdfAnnotationEditor](../)
* namespace [Aspose.Pdf.Facades](../../../aspose.pdf.facades/)
* assembly [Aspose.PDF](../../../)


