ExportAnnotationsXfdf

ExportAnnotationsXfdf(Stream, int, int, string[])

将指定注解类型的内容导出到 XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
范围类型描述
xmlOutputStreamStream输出 XFDF 流。
startInt32将导出文档注释的起始页。
endInt32文档注释将导出到的结束页面。
annotTypesString[]需要导出注释类型数组。

例子

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

也可以看看


ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])

将指定注解类型的内容导出到 XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
范围类型描述
xmlOutputStreamStream输出 XFDF 流。
startInt32将导出文档注释的起始页。
endInt32文档注释将导出到的结束页面。
annotTypesAnnotationType[]需要导出注释类型数组。

例子

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

也可以看看