PdfAnnotationEditor.ExportAnnotationsXfdf

ExportAnnotationsXfdf(Stream, int, int, string[])

Exports the content of the specified annotation types into XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
ParameterTypeDescription
xmlOutputStreamStreamThe output XFDF stream.
startInt32Start page from which the annotations of the document will be exported.
endInt32End page to which the annotations of the document will be exported.
annotTypesString[]The array of annotation types need be exported.

Examples

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


ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])

Exports the content of the specified annotations types into XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
ParameterTypeDescription
xmlOutputStreamStreamThe output XFDF stream.
startInt32Start page from which the annotations of the document will be exported.
endInt32End page to which the annotations of the document will be exported.
annotTypesAnnotationType[]The array of annotation types need be exported.

Examples

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