PdfAnnotationEditor.ModifyAnnotations
Contents
[
Hide
]PdfAnnotationEditor.ModifyAnnotations method
Modifies the annotations of the specifed type on the specified page range. It supports to modify next annotation properties: Modified, Title, Contents, Color, Subject and Open.
public void ModifyAnnotations(int start, int end, Annotation annotation)
Parameter | Type | Description |
---|---|---|
start | Int32 | The start page number. |
end | Int32 | The end page number. |
annotation | Annotation | The annotation object contains new properties. |
Examples
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");
See Also
- class Annotation
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF