ImportAnnotations
内容
[
隐藏
]ImportAnnotations(string[], AnnotationType[])
将指定的注释从另一个 PDF 文档的数组中导入到文档中。
public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
范围 | 类型 | 描述 |
---|---|---|
annotFile | String[] | 包含源注释的 PDF 文档的路径数组。 |
annotType | AnnotationType[] | 要导入的注释类型数组。 |
例子
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");
也可以看看
- enum AnnotationType
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
ImportAnnotations(string[])
将注释从另一个 PDF 文档的数组中导入到文档中。
public void ImportAnnotations(string[] annotFile)
范围 | 类型 | 描述 |
---|---|---|
annotFile | String[] | 包含源注释的 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");
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
ImportAnnotations(Stream[], AnnotationType[])
将指定的注释从另一个 PDF 文档流的数组中导入到文档中。
public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
范围 | 类型 | 描述 |
---|---|---|
annotFileStream | Stream[] | 包含源注释的 PDF 文档流数组。 |
annotType | AnnotationType[] | 要导入的注释类型。 |
例子
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();
也可以看看
- enum AnnotationType
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
ImportAnnotations(Stream[])
将注释从另一个 PDF 文档流的数组导入到文档中。
public void ImportAnnotations(Stream[] annotFileStream)
范围 | 类型 | 描述 |
---|---|---|
annotFileStream | Stream[] | 包含源注释的 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();
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF