ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

Importa le annotazioni specificate nel documento dall’array di altri documenti PDF.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParametroTipoDescrizione
annotFileString[]L’array di percorsi di documenti PDF che contengono annotazioni di origine.
annotTypeAnnotationType[]L’array di tipi di annotazioni da importare.

Esempi

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

Guarda anche


ImportAnnotations(string[])

Importa le annotazioni nel documento dall’array di altri documenti PDF.

public void ImportAnnotations(string[] annotFile)
ParametroTipoDescrizione
annotFileString[]L’array di percorsi di documenti PDF che contengono annotazioni di origine.

Esempi

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

Guarda anche


ImportAnnotations(Stream[], AnnotationType[])

Importa le annotazioni specificate nel documento dall’array di un altro flusso di documenti PDF.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParametroTipoDescrizione
annotFileStreamStream[]L’array di flussi di documenti PDF che contengono annotazioni di origine.
annotTypeAnnotationType[]I tipi di annotazione da importare.

Esempi

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

Guarda anche


ImportAnnotations(Stream[])

Importa le annotazioni nel documento dall’array di un altro flusso di documenti PDF.

public void ImportAnnotations(Stream[] annotFileStream)
ParametroTipoDescrizione
annotFileStreamStream[]L’array di flussi di documenti PDF che contengono annotazioni di origine.

Esempi

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

Guarda anche