ModifyAnnotations

PdfAnnotationEditor.ModifyAnnotations method

Belirtilen sayfa aralığında belirtilen türün ek açıklamalarını değiştirir. Sonraki açıklama özelliklerini değiştirmeyi destekler: Değiştirilmiş, Başlık, İçerik, Renk, Konu ve Aç.

public void ModifyAnnotations(int start, int end, Annotation annotation)
ParametreTipTanım
startInt32Başlangıç sayfa numarası.
endInt32Bitiş sayfa numarası.
annotationAnnotationAçıklama nesnesi yeni özellikler içeriyor.

Örnekler

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

Ayrıca bakınız