PdfAnnotationEditor.ExtractAnnotations

ExtractAnnotations(int, int, string[])

Obtiene la lista de anotaciones de los tipos especificados.

public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
ParámetroTipoDescripción
startInt32Página de inicio desde la cual se seleccionarán las anotaciones.
endInt32Página final hasta la cual se seleccionarán las anotaciones.
annotTypesString[]El arreglo de tipos de anotaciones necesarias.

Valor de Retorno

Lista de anotaciones.

Ejemplos

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

Véase También


ExtractAnnotations(int, int, AnnotationType[])

Obtiene la lista de anotaciones de los tipos especificados.

public IList<Annotation> ExtractAnnotations(int start, int end, AnnotationType[] annotTypes)
ParámetroTipoDescripción
startInt32Página de inicio desde la cual se seleccionarán las anotaciones.
endInt32Página final hasta la cual se seleccionarán las anotaciones.
annotTypesAnnotationType[]El arreglo de tipos de anotaciones necesarias.

Valor de Retorno

Lista de anotaciones.

Ejemplos

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

Véase También