PdfAnnotationEditor.ExtractAnnotations

ExtractAnnotations(int, int, string[])

Obtient la liste des annotations des types spécifiés.

public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
ParamètreTypeDescription
startInt32Page de départ à partir de laquelle les annotations seront sélectionnées.
endInt32Page de fin à laquelle les annotations seront sélectionnées.
annotTypesString[]Le tableau des types d’annotations nécessaires.

Valeur de retour

Liste des annotations.

Exemples

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

Voir aussi


ExtractAnnotations(int, int, AnnotationType[])

Obtient la liste des annotations des types spécifiés.

public IList<Annotation> ExtractAnnotations(int start, int end, AnnotationType[] annotTypes)
ParamètreTypeDescription
startInt32Page de départ à partir de laquelle les annotations seront sélectionnées.
endInt32Page de fin à laquelle les annotations seront sélectionnées.
annotTypesAnnotationType[]Le tableau des types d’annotations nécessaires.

Valeur de retour

Liste des annotations.

Exemples

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

Voir aussi