ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

Importe les annotations spécifiées dans le document à partir d’un tableau d’autres documents PDF.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParamètreTaperLa description
annotFileString[]Le tableau des chemins des documents PDF qui contiennent des annotations source.
annotTypeAnnotationType[]Tableau des types d’annotations à importer.

Exemples

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

Voir également


ImportAnnotations(string[])

Importe des annotations dans le document à partir d’un tableau d’autres documents PDF.

public void ImportAnnotations(string[] annotFile)
ParamètreTaperLa description
annotFileString[]Le tableau des chemins des documents PDF qui contiennent des annotations source.

Exemples

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

Voir également


ImportAnnotations(Stream[], AnnotationType[])

Importe les annotations spécifiées dans le document à partir d’un tableau d’autres flux de documents PDF.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParamètreTaperLa description
annotFileStreamStream[]Tableau des flux de documents PDF contenant des annotations source.
annotTypeAnnotationType[]Types d’annotations à importer.

Exemples

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

Voir également


ImportAnnotations(Stream[])

Importe des annotations dans le document à partir d’un tableau d’autres flux de documents PDF.

public void ImportAnnotations(Stream[] annotFileStream)
ParamètreTaperLa description
annotFileStreamStream[]Tableau des flux de documents PDF contenant des annotations source.

Exemples

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

Voir également