ExportAnnotationsXfdf
内容
[
隐藏
]ExportAnnotationsXfdf(Stream, int, int, string[])
将指定注解类型的内容导出到 XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
范围 | 类型 | 描述 |
---|---|---|
xmlOutputStream | Stream | 输出 XFDF 流。 |
start | Int32 | 将导出文档注释的起始页。 |
end | Int32 | 文档注释将导出到的结束页面。 |
annotTypes | String[] | 需要导出注释类型数组。 |
例子
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
using (Stream stream = File.Create("example.xfdf"))
{
editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])
将指定注解类型的内容导出到 XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end,
AnnotationType[] annotTypes)
范围 | 类型 | 描述 |
---|---|---|
xmlOutputStream | Stream | 输出 XFDF 流。 |
start | Int32 | 将导出文档注释的起始页。 |
end | Int32 | 文档注释将导出到的结束页面。 |
annotTypes | AnnotationType[] | 需要导出注释类型数组。 |
例子
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
using (Stream stream = File.Create("example.xfdf"))
{
editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}
也可以看看
- enum AnnotationType
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF