ModifyAnnotations

PdfAnnotationEditor.ModifyAnnotations method

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

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");

أنظر أيضا