ImportAnnotations
Inhalt
[
Ausblenden
]ImportAnnotations(string[], AnnotationType[])
Importiert die angegebenen Anmerkungen aus dem Array anderer PDF-Dokumente in das Dokument.
public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
Parameter | Typ | Beschreibung |
---|---|---|
annotFile | String[] | Das Array von Pfaden von PDF-Dokumenten, die Quellanmerkungen enthalten. |
annotType | AnnotationType[] | Das Array der zu importierenden Anmerkungstypen. |
Beispiele
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");
Siehe auch
- enum AnnotationType
- class PdfAnnotationEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF
ImportAnnotations(string[])
Importiert Anmerkungen aus einem Array anderer PDF-Dokumente in das Dokument.
public void ImportAnnotations(string[] annotFile)
Parameter | Typ | Beschreibung |
---|---|---|
annotFile | String[] | Das Array von Pfaden von PDF-Dokumenten, die Quellanmerkungen enthalten. |
Beispiele
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");
Siehe auch
- class PdfAnnotationEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF
ImportAnnotations(Stream[], AnnotationType[])
Importiert die angegebenen Anmerkungen aus dem Array anderer PDF-Dokumentstreams in das Dokument.
public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
Parameter | Typ | Beschreibung |
---|---|---|
annotFileStream | Stream[] | Das Array von Streams von PDF-Dokumenten, die Quellanmerkungen enthalten. |
annotType | AnnotationType[] | Die zu importierenden Anmerkungstypen. |
Beispiele
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();
Siehe auch
- enum AnnotationType
- class PdfAnnotationEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF
ImportAnnotations(Stream[])
Importiert Anmerkungen in das Dokument aus einem Array anderer PDF-Dokument-Streams.
public void ImportAnnotations(Stream[] annotFileStream)
Parameter | Typ | Beschreibung |
---|---|---|
annotFileStream | Stream[] | Das Array von Streams von PDF-Dokumenten, die Quellanmerkungen enthalten. |
Beispiele
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();
Siehe auch
- class PdfAnnotationEditor
- namensraum Aspose.Pdf.Facades
- Montage Aspose.PDF