ExtractAnnotations

ExtractAnnotations(int, int, string[])

Gets the list of annotations of the specified types.

public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
Parameter Type Description
start Int32 Start page from which the annotations will be selected.
end Int32 End page to which the annotations will be selected.
annotTypes String[] 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)
Parameter Type Description
start Int32 Start page from which the annotations will be selected.
end Int32 End page to which the annotations will be selected.
annotTypes AnnotationType[] 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