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

Смотрите также