PdfAnnotationEditor.ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

تستورد التعليقات المحددة إلى المستند من مصفوفة من مستندات PDF الأخرى.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParameterTypeDescription
annotFileString[]مصفوفة من مسارات مستندات PDF التي تحتوي على التعليقات المصدر.
annotTypeAnnotationType[]مصفوفة من أنواع التعليقات التي سيتم استيرادها.

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


ImportAnnotations(string[])

تستورد التعليقات إلى المستند من مصفوفة من مستندات PDF الأخرى.

public void ImportAnnotations(string[] annotFile)
ParameterTypeDescription
annotFileString[]مصفوفة من مسارات مستندات 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


ImportAnnotations(Stream[], AnnotationType[])

تستورد التعليقات المحددة إلى المستند من مصفوفة من تدفقات مستندات PDF الأخرى.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParameterTypeDescription
annotFileStreamStream[]مصفوفة من تدفقات مستندات PDF التي تحتوي على التعليقات المصدر.
annotTypeAnnotationType[]أنواع التعليقات التي سيتم استيرادها.

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


ImportAnnotations(Stream[])

تستورد التعليقات إلى المستند من مصفوفة من تدفقات مستندات PDF الأخرى.

public void ImportAnnotations(Stream[] annotFileStream)
ParameterTypeDescription
annotFileStreamStream[]مصفوفة من تدفقات مستندات 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