ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

Importa las anotaciones especificadas en el documento desde una matriz de otros documentos PDF.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParámetroEscribeDescripción
annotFileString[]La matriz de rutas de los documentos PDF que contienen anotaciones de origen.
annotTypeAnnotationType[]La matriz de tipos de anotaciones que se van a importar.

Ejemplos

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

Ver también


ImportAnnotations(string[])

Importa anotaciones al documento desde una matriz de otros documentos PDF.

public void ImportAnnotations(string[] annotFile)
ParámetroEscribeDescripción
annotFileString[]La matriz de rutas de los documentos PDF que contienen anotaciones de origen.

Ejemplos

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

Ver también


ImportAnnotations(Stream[], AnnotationType[])

Importa las anotaciones especificadas en el documento desde una matriz de otros flujos de documentos PDF.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParámetroEscribeDescripción
annotFileStreamStream[]La matriz de secuencias de documentos PDF que contienen anotaciones de origen.
annotTypeAnnotationType[]Los tipos de anotación que se van a importar.

Ejemplos

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

Ver también


ImportAnnotations(Stream[])

Importa anotaciones en el documento desde una matriz de otros flujos de documentos PDF.

public void ImportAnnotations(Stream[] annotFileStream)
ParámetroEscribeDescripción
annotFileStreamStream[]La matriz de secuencias de documentos PDF que contienen anotaciones de origen.

Ejemplos

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

Ver también