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

另请参阅