PdfAnnotationEditor.ExtractAnnotations

ExtractAnnotations(int, int, string[])

Gets the list of annotations of the specified types.

public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
ParameterTypeDescription
startInt32Start page from which the annotations will be selected.
endInt32End page to which the annotations will be selected.
annotTypesString[]The array of needed annotation types.

Return Value

Annotations list.

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);

See Also


ExtractAnnotations(int, int, AnnotationType[])

Gets the list of annotations of the specified types.

public IList<Annotation> ExtractAnnotations(int start, int end, AnnotationType[] annotTypes)
ParameterTypeDescription
startInt32Start page from which the annotations will be selected.
endInt32End page to which the annotations will be selected.
annotTypesAnnotationType[]The array of needed annotation types.

Return Value

Annotations list.

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);

See Also