PdfAnnotationEditor.ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

Imports the specified annotations into document from array of another PDF documents.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParameterTypeDescription
annotFileString[]The array of paths of PDF documents that contain source annotations.
annotTypeAnnotationType[]The array of annotation types to be imported.

Examples

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

See Also


ImportAnnotations(string[])

Imports annotations into document from array of another PDF documents.

public void ImportAnnotations(string[] annotFile)
ParameterTypeDescription
annotFileString[]The array of paths of PDF documents that contain source annotations.

Examples

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

See Also


ImportAnnotations(Stream[], AnnotationType[])

Imports the specified annotations into document from array of another PDF document streams.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParameterTypeDescription
annotFileStreamStream[]The array of streams of PDF documents that contain source annotations.
annotTypeAnnotationType[]The annotation types to be imported.

Examples

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

See Also


ImportAnnotations(Stream[])

Imports annotations into document from array of another PDF document streams.

public void ImportAnnotations(Stream[] annotFileStream)
ParameterTypeDescription
annotFileStreamStream[]The array of streams of PDF documents that contain source annotations.

Examples

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

See Also