PdfAnnotationEditor.ModifyAnnotations

طريقة PdfAnnotationEditor.ModifyAnnotations

تعدل التعليقات التوضيحية من النوع المحدد على نطاق الصفحات المحدد. تدعم تعديل خصائص التعليق التوضيحي التالية: المعدل، العنوان، المحتويات، اللون، الموضوع، وفتح.

public void ModifyAnnotations(int start, int end, Annotation annotation)
المعاملالنوعالوصف
startInt32رقم الصفحة الابتدائية.
endInt32رقم الصفحة النهائية.
annotationAnnotationكائن التعليق التوضيحي يحتوي على خصائص جديدة.

أمثلة

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
TextAnnotation annot = new TextAnnotation();
annot.Modified = DateTime.Now;
annot.Title = "NEW AUTHOR";
annot.Contents = "NEW CONTENTS";
annot.Color = Color.Red;
annot.Subject = "NEW SUBJECT";
annot.Open = true;
editor.ModifyAnnotations(1, 2, annot);
editor.Save("example_out.pdf");

انظر أيضًا