ImportAnnotations
Contenido
[
Ocultar
]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ámetro | Escribe | Descripción |
---|---|---|
annotFile | String[] | La matriz de rutas de los documentos PDF que contienen anotaciones de origen. |
annotType | AnnotationType[] | 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
- enum AnnotationType
- class PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- asamblea Aspose.PDF
ImportAnnotations(string[])
Importa anotaciones al documento desde una matriz de otros documentos PDF.
public void ImportAnnotations(string[] annotFile)
Parámetro | Escribe | Descripción |
---|---|---|
annotFile | String[] | 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
- class PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- asamblea Aspose.PDF
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ámetro | Escribe | Descripción |
---|---|---|
annotFileStream | Stream[] | La matriz de secuencias de documentos PDF que contienen anotaciones de origen. |
annotType | AnnotationType[] | 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
- enum AnnotationType
- class PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- asamblea Aspose.PDF
ImportAnnotations(Stream[])
Importa anotaciones en el documento desde una matriz de otros flujos de documentos PDF.
public void ImportAnnotations(Stream[] annotFileStream)
Parámetro | Escribe | Descripción |
---|---|---|
annotFileStream | Stream[] | 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
- class PdfAnnotationEditor
- espacio de nombres Aspose.Pdf.Facades
- asamblea Aspose.PDF