ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

将指定的注释从另一个 PDF 文档的数组中导入到文档中。

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
范围类型描述
annotFileString[]包含源注释的 PDF 文档的路径数组。
annotTypeAnnotationType[]要导入的注释类型数组。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(paths, annotTypes);
editor.Save("example_out.pdf");

也可以看看


ImportAnnotations(string[])

将注释从另一个 PDF 文档的数组中导入到文档中。

public void ImportAnnotations(string[] annotFile)
范围类型描述
annotFileString[]包含源注释的 PDF 文档的路径数组。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
editor.ImportAnnotations(paths);
editor.Save("example_out.pdf");

也可以看看


ImportAnnotations(Stream[], AnnotationType[])

将指定的注释从另一个 PDF 文档流的数组中导入到文档中。

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
范围类型描述
annotFileStreamStream[]包含源注释的 PDF 文档流数组。
annotTypeAnnotationType[]要导入的注释类型。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
stream[0]= File.OpenRead("with_annots1.pdf");
stream[1]= File.OpenRead("with_annots2.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(streams, annotTypes);
editor.Save("example_out.pdf");
stream[0].Close();
stream[1].Close();

也可以看看


ImportAnnotations(Stream[])

将注释从另一个 PDF 文档流的数组导入到文档中。

public void ImportAnnotations(Stream[] annotFileStream)
范围类型描述
annotFileStreamStream[]包含源注释的 PDF 文档流数组。

例子

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
streams[0]= File.OpenRead("with_annots1.pdf");
streams[1]= File.OpenRead("with_annots2.pdf");
editor.ImportAnnotations(streams);
editor.Save("example_out.pdf");
streams[0].Close();
streams[1].Close();

也可以看看