ImportAnnotationsFromXfdf

ImportAnnotationsFromXfdf(string)

从 XFDF 文件中导入所有注释。

public void ImportAnnotationsFromXfdf(string xfdfFile)
范围类型描述
xfdfFileString输入 XFDF 文件。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf("annots.xfdf");
editor.Save("example_out.pdf");

也可以看看


ImportAnnotationsFromXfdf(Stream)

从 XFDF 数据流中导入所有注释。

public void ImportAnnotationsFromXfdf(Stream xfdfStream)
范围类型描述
xfdfStreamStream输入 XFDF 数据流。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.ImportAnnotationsFromXfdf(File.OpenRead("annots.xfdf"));
editor.Save("example_out.pdf");

也可以看看