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)
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

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)
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

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