ImportAnnotations
Contenu
[
Cacher
]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ètre | Taper | La description |
---|---|---|
annotFile | String[] | Le tableau des chemins des documents PDF qui contiennent des annotations source. |
annotType | AnnotationType[] | 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
- enum AnnotationType
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
ImportAnnotations(string[])
Importe des annotations dans le document à partir d’un tableau d’autres documents PDF.
public void ImportAnnotations(string[] annotFile)
Paramètre | Taper | La description |
---|---|---|
annotFile | String[] | 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
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
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ètre | Taper | La description |
---|---|---|
annotFileStream | Stream[] | Tableau des flux de documents PDF contenant des annotations source. |
annotType | AnnotationType[] | 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
- enum AnnotationType
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
ImportAnnotations(Stream[])
Importe des annotations dans le document à partir d’un tableau d’autres flux de documents PDF.
public void ImportAnnotations(Stream[] annotFileStream)
Paramètre | Taper | La description |
---|---|---|
annotFileStream | Stream[] | 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
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF