PdfAnnotationEditor.ImportAnnotations
محتويات
[
يخفي
]ImportAnnotations(string[], AnnotationType[])
تستورد التعليقات المحددة إلى المستند من مصفوفة من مستندات PDF الأخرى.
public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
Parameter | Type | Description |
---|---|---|
annotFile | String[] | مصفوفة من مسارات مستندات PDF التي تحتوي على التعليقات المصدر. |
annotType | AnnotationType[] | مصفوفة من أنواع التعليقات التي سيتم استيرادها. |
Examples
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");
See Also
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ImportAnnotations(string[])
تستورد التعليقات إلى المستند من مصفوفة من مستندات PDF الأخرى.
public void ImportAnnotations(string[] annotFile)
Parameter | Type | Description |
---|---|---|
annotFile | String[] | مصفوفة من مسارات مستندات PDF التي تحتوي على التعليقات المصدر. |
Examples
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");
See Also
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ImportAnnotations(Stream[], AnnotationType[])
تستورد التعليقات المحددة إلى المستند من مصفوفة من تدفقات مستندات PDF الأخرى.
public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
Parameter | Type | Description |
---|---|---|
annotFileStream | Stream[] | مصفوفة من تدفقات مستندات PDF التي تحتوي على التعليقات المصدر. |
annotType | AnnotationType[] | أنواع التعليقات التي سيتم استيرادها. |
Examples
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();
See Also
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ImportAnnotations(Stream[])
تستورد التعليقات إلى المستند من مصفوفة من تدفقات مستندات PDF الأخرى.
public void ImportAnnotations(Stream[] annotFileStream)
Parameter | Type | Description |
---|---|---|
annotFileStream | Stream[] | مصفوفة من تدفقات مستندات PDF التي تحتوي على التعليقات المصدر. |
Examples
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();
See Also
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF