ModifyAnnotations
PdfAnnotationEditor.ModifyAnnotations method
يعدل التعليقات التوضيحية للنوع المحدد في نطاق الصفحات المحدد. وهو يدعم تعديل خصائص التعليق التوضيحي التالية: التعديل والعنوان والمحتويات واللون والموضوع والفتح.
public void ModifyAnnotations(int start, int end, Annotation annotation)
معامل | يكتب | وصف |
---|---|---|
start | Int32 | رقم صفحة البداية. |
end | Int32 | رقم صفحة النهاية. |
annotation | Annotation | يحتوي كائن التعليق التوضيحي على خصائص جديدة. |
أمثلة
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");
أنظر أيضا
- class Annotation
- class PdfAnnotationEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF