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);

也可以看看