PdfAnnotationEditor.ExtractAnnotations
内容
[
隐藏
]ExtractAnnotations(int, int, string[])
获取指定类型的注释列表。
public IList<Annotation> ExtractAnnotations(int start, int end, string[] annotTypes)
| 参数 | 类型 | 描述 |
|---|---|---|
| start | Int32 | 从哪个页面开始选择注释。 |
| end | Int32 | 到哪个页面选择注释。 |
| annotTypes | String[] | 所需注释类型的数组。 |
返回值
注释列表。
示例
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);
另请参阅
- class Annotation
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ExtractAnnotations(int, int, AnnotationType[])
获取指定类型的注释列表。
public IList<Annotation> ExtractAnnotations(int start, int end, AnnotationType[] annotTypes)
| 参数 | 类型 | 描述 |
|---|---|---|
| start | Int32 | 从哪个页面开始选择注释。 |
| end | Int32 | 到哪个页面选择注释。 |
| annotTypes | AnnotationType[] | 所需注释类型的数组。 |
返回值
注释列表。
示例
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
IList annotList = editor.ExtractAnnotations(1, 2 , annotTypes);
另请参阅
- class Annotation
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF