ExtractAnnotations

ExtractAnnotations(int, int, string[])

Получает список аннотаций указанных типов.

public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
ПараметрТипОписание
startInt32Стартовая страница, с которой будут выбираться аннотации.
endInt32Конечная страница, к которой будут выбраны аннотации.
annotTypesString[]Массив необходимых типов аннотаций.

Возвращаемое значение

Список аннотаций.

Примеры

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

Смотрите также


ExtractAnnotations(int, int, AnnotationType[])

Получает список аннотаций указанных типов.

public IList<Annotation> ExtractAnnotations(int start, int end, AnnotationType[] annotTypes)
ПараметрТипОписание
startInt32Стартовая страница, с которой будут выбираться аннотации.
endInt32Конечная страница, к которой будут выбраны аннотации.
annotTypesAnnotationType[]Массив необходимых типов аннотаций.

Возвращаемое значение

Список аннотаций.

Примеры

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

Смотрите также